template.html 1.27 KB
Newer Older
1
{% extends "template.html" %}
Mathilde Espinasse's avatar
Mathilde Espinasse committed
2
{% load i18n %}
Nicolas Dandrimont's avatar
Nicolas Dandrimont committed
3
{% load prises_tags %}
Mathilde Espinasse's avatar
Mathilde Espinasse committed
4 5
{% block title %}{% trans "Les prises" %}{% endblock %}
{% block h1 %}{% trans "Prises" %} {% endblock %}
6
{% block head %}<link rel="stylesheet" type="text/css" href="/static/css/prises.css" />{% endblock %}
7
{% block content %}
8 9 10 11
{% if perms.prises.can_view %}
<div style="width:100%; height: 55px">
<div class="navigation">
<ul>
Nicolas Dandrimont's avatar
Nicolas Dandrimont committed
12
  {% for page_url, page_title in PAGES %}
13
  <li{% ifnotequal cur_page page_url %}><a href="{% get_page_url page_url %}">{{ page_title }}</a>{% else %} style="background: rgba(255, 255, 255, 0.5);color: black;text-decoration:underline;">{{ page_title }}{% endifnotequal %}  </li>
14 15
  {% endfor %}
</ul>
16 17 18 19 20
</div>
</div>
{% if batiments %}
<div class="navigation">
<ul class="">
21
{% for bat in batiments %}
22
  <li
23
  {% ifnotequal bat batiment %}
Mathilde Espinasse's avatar
Mathilde Espinasse committed
24
    ><a href="{% get_page_url cur_page bat %}">{% trans " Bâtiment" %} {{ bat|upper }} </a>
25 26
  {% endifnotequal %}
  {% ifequal bat batiment %}
Mathilde Espinasse's avatar
Mathilde Espinasse committed
27
  style="background: rgba(255, 255, 255, 0.5);color: black;text-decoration:underline;">{% trans "Bâtiment" %} {{ bat|upper }}
28 29 30 31
  {% endifequal %}
  </li>
{% endfor %}
</ul>
32
</div>
33
<hr class="nofloat" style="visibility:hidden" />
34 35
{% endif %}
{% endif %}
36 37 38
{% block prises_content %}
{% endblock prises_content %}
{% endblock %}