Commit 7b9cc79e authored by Leonidas Poulopoulos's avatar Leonidas Poulopoulos
Browse files

Added participating institutions

parent ee184d58
......@@ -773,6 +773,17 @@ def geolocate(request):
return render_to_response('front/geolocate.html',
context_instance=RequestContext(request))
def participants(request):
institutions = Institution.objects.all()
dets = []
for i in institutions:
try:
dets.append(i.institutiondetails)
except InstitutionDetails.DoesNotExist:
pass
return render_to_response('front/participants.html', {'institutions': dets},
context_instance=RequestContext(request))
def selectinst(request):
if request.method == 'POST':
request_data = request.POST.copy()
......
......@@ -129,10 +129,10 @@ body {
<ul class="nav nav-list">
<li {% block homepage %}{% endblock %}><a href="{% url index %}">{% trans "Home" %}</a></li>
<li {% block closest %}{% endblock %}><a href="{% url geolocate %}" target="about:blank()">Closest</a></li>
<li {% block faq %}{% endblock %}><a href="/faq/{{LANGUAGE_CODE}}/">FAQ</a></li>
<li {% block closest %}{% endblock %}><a href="{% url geolocate %}" target="about:blank()">{% trans "Closest eduroam" %}</a></li>
<li {% block whatis %}{% endblock %}><a href="/what/{{LANGUAGE_CODE}}/">{% trans "What" %}?</a></li>
<li {% block where %}{% endblock %}><a href="#">{% trans "What" %}?</a></li>
<li {% block participants %}{% endblock %}><a href="{% url participants %}">{% trans "Participants" %}</a></li>
<li {% block faq %}{% endblock %}><a href="/faq/{{LANGUAGE_CODE}}/">FAQ</a></li>
<li class="nav-header">Institutions</li>
<li {% block mgmt %}{% endblock %}><a href="{% url manage %}">{% trans "Management" %}</a></li>
</ul>
......
{% extends "base.html" %}
{% load i18n %}
{% block title %}eduroam@Greece{% endblock %}
{% block homepage %}{% endblock %}
{% block hometop %}{% endblock %}
{% block participants %}class="active"{% endblock %}
{% block extrahead %}
<style type="text/css">
html,body {
height: 100%;
overflow: hidden;
}
.headtitle {font-family: "Franklin Gothic Demi", "Franklin Gothic", "ITC Franklin Gothic", Arial, sans-serif; letter-spacing: -1px; }
</style>
<script type="text/javascript" src="/static/js/jquery.min.js"></script>
{% endblock %}
{% block subcontent %}
{% load tolocale %}
<h4>{% trans "Participating Institutions" %}</h4>
<hr>
<div>{% blocktrans %}In Greece eduroam is provided by the following instituitons/organizations{% endblocktrans %}</div><br>
<div>{% for i in institutions %}
<address>
<strong>{% tolocale i.institution LANGUAGE_CODE %}</strong><br>
{{i.address_street}}<br>
{{i.address_city}}
{% if i.url.all|length > 0 %}
<dl style="margin-top: 0px;">
<dt style="font-weight: normal;">urls</dt>
<dd>
{% for u in i.url.all %}{% if u %}<a href="{{u.url}}">{{u.url}}</a> {{u.get_urltype_display}} ({{u.get_lang_display}})<br>{% endif %}{% endfor %}
</dd>
</dl>
{% endif %}
</address>
{% endfor %}</div>
{% endblock %}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment