welcome.html 3.48 KB
Newer Older
1 2
{% extends "base.html"%}
{% load i18n %}
Kroustouris Stauros's avatar
Kroustouris Stauros committed
3 4
{% load staticfiles %}

5
{% block currentpagetitle %}Management{% endblock %}
Kroustouris Stauros's avatar
Kroustouris Stauros committed
6
{% block manage %}active{% endblock %}
Kroustouris Stauros's avatar
Kroustouris Stauros committed
7

8 9 10
{% block headtitle %}eduroam@Greece admin{% endblock %}

{% block content %}
Kroustouris Stauros's avatar
Kroustouris Stauros committed
11 12 13 14 15 16 17 18 19 20 21 22 23 24
<div class="row" style="margin: 0">
	<div class="col-md-2">
		<div class="push-top"></div>
		<div class="well sidebar-nav">
			<ul class="nav nav-list">
				<li {% block homeactive %}class="active"{% endblock %}>
					<a href="{% url manage %}">{% trans "Home" %}</a>
				</li>
				{% if institution_exists %}
				<li {% block instactive %}{% endblock %}>
					<a href="{% url institutions %}">{% trans "Institution" %} {% if not institutiondetails %}<font style="color: red; font-weight: bold; font-size: 14px;">(!)</font>{% endif %}</a>
				</li>
				{% endif %}
				{% if institutiondetails %}
25
				{% if institution_canhaveservicelocs %}
Kroustouris Stauros's avatar
Kroustouris Stauros committed
26 27 28
				<li {% block servicesactive %}{% endblock %}>
					<a href="{% url services %}">{% trans "Locations" %} ({{services_num}})</a>
				</li>
29
				{% endif %}
Kroustouris Stauros's avatar
Kroustouris Stauros committed
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
				<li {% block serversactive %}{% endblock %}>
					<a href="{% url servers %}">{% trans "Servers" %} ({{servers_num}})</a>
				</li>
				<li {% block realmsactive %}{% endblock %}>
					<a href="{% url realms %}">{% trans "Realms" %} ({{realms_num}})</a>
				</li>
				<li {% block instrealmmon %}{% endblock %}>
					<a href="{% url instrealmmon %}">{% trans "Monitored Realms" %} ({{monrealms_num}})</a>
				</li>
				<li {% block contactsactive %}{% endblock %}>
					<a href="{% url contacts %}">{% trans "Contacts" %} ({{contacts_num}})</a>
				</li>
				{% if CAT_INSTANCES %}
				<li {% block catactive %}{% endblock %}>
					<a href="{% url catenroll %}">{% trans "eduroam CAT" %}</a>
				</li>
				{% endif %}

				{% endif %}
			</ul>
50 51
		</div>
	</div>
Kroustouris Stauros's avatar
Kroustouris Stauros committed
52 53 54 55 56 57 58 59 60
	<div class="col-lg-10">
		 <div class="row">
			<div class="col-md-12">
			{% block management_content %}
			{% if not institution_exists %}
		                <table class="table table-condensed">
				    <tr class="error"><td>You are not associated with any institution. Please contact your administrator<td></tr>
				</table>
			{% else %}
61
				<h4>{% trans "Home" %}{% if institution_canhaveservicelocs %} - {% trans "Service Locations" %}{% endif %} </h4>
Kroustouris Stauros's avatar
Kroustouris Stauros committed
62 63 64 65 66 67
	              		<hr>
				{% if services %}
					<div id="map_canvas" data-group="{% static 'img/edugroup.png' %}" data-pin="{% static 'img/edupin.png' %}" data-center-lat="{{MAP_CENTER.0}}" data-center-lng="{{MAP_CENTER.1}}" data-service="{% url get-service-points %}" data-service-edit="{% url edit-services  %}" style="width:100%; height:450px;"></div>
				{% else %}
					<div>
						{% if institutiondetails %}
68
						{% if institution_canhaveservicelocs %}
Kroustouris Stauros's avatar
Kroustouris Stauros committed
69 70 71 72
							{% trans "No services defined yet"%}!
							<a href="{% url edit-services %}" class="btn btn-primary">
								{% trans "Add new service" %}
							</a>
73
						{% endif %}
Kroustouris Stauros's avatar
Kroustouris Stauros committed
74 75 76 77 78 79 80 81 82 83 84
						{% else %}
							Specify your institution details to proceed <a class="btn btn-small btn-primary" href="{% url edit-institution institution.pk %}">{% trans "Edit" %}</a>
						{% endif %}
					</div>
				{% endif %}
			{% endif %}
			{% endblock %}
			</div>
		</div>
	</div>
</div>
85 86


Kroustouris Stauros's avatar
Kroustouris Stauros committed
87
{% endblock %}
88 89


Kroustouris Stauros's avatar
Kroustouris Stauros committed
90 91
{% block extrajs %}
<script type="text/javascript" src="{% static 'js/markerclusterer.js' %}"></script>
92
<script type="text/javascript" src="//maps.googleapis.com/maps/api/js?{% if GOOGLE_MAPS_API_KEY %}key={{ GOOGLE_MAPS_API_KEY }}{% endif %}"></script>
Kroustouris Stauros's avatar
Kroustouris Stauros committed
93
<script type="text/javascript" src="{% static 'js/management-map.js' %}"></script>
94
{% endblock %}