3be30a94 |
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"/> |
0ba28d89 |
7 | |
3be30a94 |
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 --> |
0ba28d89 |
23 | <div id="header"> |
24 | |
25 | <div id="banner"> |
3be30a94 |
26 | <img src="{% static "admin/img/logo.gif" %}" alt="logo AUF"/> |
27 | <h1>Passeport Académique Francophone (PAF)</h1> |
0ba28d89 |
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> |
3be30a94 |
35 | <li><a href="{% url 'deconnexion' %}">Déconnexion</a></li> |
0ba28d89 |
36 | {% if user.is_superuser %} |
3be30a94 |
37 | <li><a href="{% url 'admin:index' %}">Administration</a></li> |
0ba28d89 |
38 | {% endif %} |
39 | {% ifequal user.first_name 'student' %} |
3be30a94 |
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 %} |
0ba28d89 |
42 | {% endifequal %} |
43 | {% ifequal user.username 'enseignant' %} |
3be30a94 |
44 | <li><a href="/paf-v1/admin/paf/student/">Liste des étudiants</a></li> |
0ba28d89 |
45 | {% endifequal %} |
46 | {% else %} |
3be30a94 |
47 | <li><a href="{% url 'connexion' %}">Connexion</a></li> |
48 | <li><a href="{% url 'register' %}">Enregistrer</a></li> |
0ba28d89 |
49 | {% endif %} |
50 | </ul> |
51 | |
52 | </div> |
3be30a94 |
53 | <!-- END Header --> |
0ba28d89 |
54 | |
3be30a94 |
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 %} |
0ba28d89 |
62 | |
3be30a94 |
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" /> |
0ba28d89 |
73 | </div> |
3be30a94 |
74 | <!-- END Content --> |
0ba28d89 |
75 | |
3be30a94 |
76 | {% block footer %}<div id="footer"></div>{% endblock %} |
77 | </div> |
78 | <!-- END Container --> |
0ba28d89 |
79 | |
80 | </body> |
81 | </html> |