102 lines
2.4 KiB
HTML
102 lines
2.4 KiB
HTML
{% extends "base.html" %}
|
|
{% load i18n %}
|
|
|
|
{% block content %}
|
|
|
|
|
|
|
|
<div class="admin_info">
|
|
<div class="right">
|
|
<a class="button" href="/logout">{% trans "Logout" %}</a>
|
|
</div>
|
|
{% if username %}
|
|
{% trans "You are logged as" %} <strong>{{ username }}</strong>.
|
|
{% else %}
|
|
{% trans "Logged in." %}
|
|
{% endif %}
|
|
{{ special_role }}
|
|
</div>
|
|
|
|
{% if messages %}
|
|
<ul class="messages">
|
|
{% for message in messages %}
|
|
<li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
|
|
<div id="tabs">
|
|
|
|
{% if administration_services or power_services or exploitation_services%}
|
|
<ul>
|
|
{% if administration_services %}
|
|
<li><a href="#tabs-1">{% trans "Policies administration" %}</a></li>
|
|
{% endif %}
|
|
{% if power_services %}
|
|
<li><a href="#tabs-2">{% trans "Administration of A.C.S." %}</a></li>
|
|
{% endif %}
|
|
{% if exploitation_services %}
|
|
<li><a href="#tabs-3">{% trans "Policy exploitation" %}</a></li>
|
|
{% endif %}
|
|
</ul>
|
|
{% endif %}
|
|
|
|
{% if administration_services %}
|
|
<div id="tabs-1">
|
|
{% for key, value in administration_services.items %}
|
|
{% if value %}
|
|
<h2>{{ key }}</h2>
|
|
<ul>
|
|
{% for k, v in value.items %}
|
|
<li class="bigbutton"><a class="bigbutton" href="{{ k }}">{{ v }}</a></li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</div>
|
|
{% endif %}
|
|
|
|
{% if power_services %}
|
|
<div id="tabs-2">
|
|
{% for key, value in power_services.items %}
|
|
{% if value %}
|
|
<h2>{{ key }}</h2>
|
|
<ul>
|
|
{% for k, v in value.items %}
|
|
<li class="bigbutton"><a class="bigbutton" href="{{ k }}">{{ v }}</a></li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</div>
|
|
{% endif %}
|
|
|
|
{% if exploitation_services %}
|
|
<div id="tabs-3">
|
|
{% for key, value in exploitation_services.items %}
|
|
{% if value %}
|
|
<h2>{{ key }}</h2>
|
|
<ul>
|
|
{% for k, v in value.items %}
|
|
<li class="bigbutton"><a class="bigbutton" href="{{ k }}">{{ v }}</a></li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</div>
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
$( "#tabs" ).tabs({cookie: {path: '/'}});
|
|
</script>
|
|
{% endblock %}
|
|
|
|
{% block extra_scripts %}
|
|
<script type="text/javascript" src="{{ MEDIA_URL }}js/jquery.js"></script>
|
|
<script type="text/javascript" src="{{ MEDIA_URL }}js/jquery.cookie.js"></script>
|
|
<script type="text/javascript" src="{{ MEDIA_URL }}js/jquery-ui.js"></script>
|
|
<script type="text/javascript" src="{{ MEDIA_URL }}js/jquery.simplemodal.js"></script>
|
|
{% endblock %}
|