Première version en Python-Django.
[auf_paf.git] / paf0 / templates / base.html
1 {% load admin_static %}{% load url from future %}<!DOCTYPE html>
2 <html lang="{{ LANGUAGE_CODE|default:"en-us" }}" {% if LANGUAGE_BIDI %}dir="rtl"{% endif %}>
3 <head>
4 <title>{% block title %}{% endblock %}</title>
5 <link rel="stylesheet" type="text/css" href="{% block stylesheet %}{% static "admin/css/base.css" %}{% endblock %}" />
6 <link rel="stylesheet" type="text/css" href="{% static "admin/css/mystyle.css" %}" media="all"/>
7
8 {% block extrastyle %}{% endblock %}
9 <!--[if lte IE 7]><link rel="stylesheet" type="text/css" href="{% block stylesheet_ie %}{% static "admin/css/ie.css" %}{% endblock %}" /><![endif]-->
10 {% if LANGUAGE_BIDI %}<link rel="stylesheet" type="text/css" href="{% block stylesheet_rtl %}{% static "admin/css/rtl.css" %}{% endblock %}" />{% endif %}
11 <script type="text/javascript">window.__admin_media_prefix__ = "{% filter escapejs %}{% static "admin/" %}{% endfilter %}";</script>
12 {% block extrahead %}{% endblock %}
13 {% block blockbots %}<meta name="robots" content="NONE,NOARCHIVE" />{% endblock %}
14 </head>
15 {% load i18n %}
16
17 <body class="{% if is_popup %}popup {% endif %}{% block bodyclass %}{% endblock %}">
18
19 <!-- Container -->
20 <div id="container">
21
22 <!-- Header -->
23 <div id="header">
24
25 <div id="banner">
26 <img src="{% static "admin/img/logo.gif" %}" alt="logo AUF"/>
27 <h1>Passeport Académique Francophone (PAF)</h1>
28 <h2>{% block sous_titre %}{% endblock %}</h2>
29 {% block chapeau %}{% endblock %}
30 </div>
31
32 <ul id="user-actions">
33 {% if user.is_authenticated %}
34 <li class="username">{{ user }}</li>
35 <li><a href="{% url 'deconnexion' %}">Déconnexion</a></li>
36 {% if user.is_superuser %}
37 <li><a href="{% url 'admin:index' %}">Administration</a></li>
38 {% endif %}
39 {% ifequal user.first_name 'student' %}
40 {% block edit_info %}<li><a href="{% url 'edit_info' %}">Modifier votre information</a></li>{% endblock %}
41 {% block edit_passwd %}<li><a href="{% url 'change_password' %}">Changer le mot de passe</a></li>{% endblock %}
42 {% endifequal %}
43 {% ifequal user.username 'enseignant' %}
44 <li><a href="/paf-v1/admin/paf/student/">Liste des étudiants</a></li>
45 {% endifequal %}
46 {% else %}
47 <li><a href="{% url 'connexion' %}">Connexion</a></li>
48 <li><a href="{% url 'register' %}">Enregistrer</a></li>
49 {% endif %}
50 </ul>
51
52 </div>
53 <!-- END Header -->
54
55 {% block messages %}
56 {% if messages %}
57 <ul class="messagelist">{% for message in messages %}
58 <li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
59 {% endfor %}</ul>
60 {% endif %}
61 {% endblock messages %}
62
63 <!-- Content -->
64 <div id="content" class="{% block coltype %}colM{% endblock %}">
65 {% block pretitle %}{% endblock %}
66 {% block content_title %}{% endblock %}
67 {% block content %}
68 {% block object-tools %}{% endblock %}
69 {{ content }}
70 {% endblock %}
71 {% block sidebar %}{% endblock %}
72 <br class="clear" />
73 </div>
74 <!-- END Content -->
75
76 {% block footer %}<div id="footer"></div>{% endblock %}
77 </div>
78 <!-- END Container -->
79
80 </body>
81 </html>