7da9e425201e9d7bff8024d6792e85e40f5cd1cc
[auf_paf.git] / paf0 / templates / base.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml" xmlns:svg="http://www.w3.org/2000/svg" xml:lang="fr">
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
5 <title>{% block title %}Passport Académique Francophone (PAF){% endblock %}</title>
6 <link rel="icon" type="image/png" href="{{ MEDIA_URL }}images/favicon.ico" />
7 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/style.css" media="all"/>
8 {% block css %}{% endblock %}
9 {% block js %}{% endblock %}
10 {% block extrahead %}{% endblock %}
11
12 </head>
13
14 <body>
15 <div id="header">
16
17 <div id="banner">
18 <img src="{{ MEDIA_URL }}images/logo.gif" alt="logo AUF"/>
19 <h1>Passport Académique Francophone (PAF)</h1>
20 <h2>{% block sous_titre %}{% endblock %}</h2>
21 {% block chapeau %}{% endblock %}
22 </div>
23
24 <ul id="user-actions">
25 {% if user.is_authenticated %}
26 <li class="username">{{ user }}</li>
27 <li><a href="{% url deconnexion %}">Déconnexion</a></li>
28 {% if user.is_superuser %}
29 <li><a href="{% url admin:index %}">Administration</a></li>
30 {% endif %}
31 {% ifequal user.first_name 'student' %}
32 <li><a href="{% url edit_info %}">Modifier votre information</a></li>
33 <li><a href="{% url change_password %}">Changer le mot de passe</a></li>
34 {% endifequal %}
35 {% ifequal user.username 'enseignant' %}
36 <li><a href="/admin/paf/student/">Liste des étudiants</a></li>
37 {% endifequal %}
38 {% else %}
39 <li><a href="{% url connexion %}">Connexion</a></li>
40 <li><a href="{% url register %}">Enregistrer</a></li>
41 {% endif %}
42 </ul>
43
44 </div>
45 <!--
46 <div id="topmenu">
47 <ul class="menu">
48 <li><a href="{% url home %}">Accueil</a>
49 <li><a href="{% url home %}">Établissements</a></li>
50 <li><a href="{% url home %}">Personnes</a></li>
51 </ul>
52 </div>
53 -->
54 {% block droite %}
55 {% endblock %}
56
57
58 <div id="main">
59 {% block main %}
60 {% endblock %}
61 </div>
62
63 <div id="footer">
64 {% block footer %}
65 {% endblock %}
66 </div>
67
68 </body>
69 </html>