]> git.0d.be Git - panikdb.git/blob - panikdb/templates/base.html
aadfcfa27767f220fba0df5867ddd8ee11ad66d4
[panikdb.git] / panikdb / templates / base.html
1 {% extends "gadjo/base.html" %}
2 {% load gadjo i18n panikdbtags %}
3     {% block page-title %}{{site_title}}{% endblock %}
4
5     {% block bodyargs %}data-no-moving-header="x"{%endblock %}
6
7     {% block gadjo-js %}
8     {{ block.super }}
9     <script src="{{ STATIC_URL }}js/jquery.fileupload.js"></script>
10     <script src="{{ STATIC_URL }}js/jquery.iframe-transport.js"></script>
11     <script src="{{ STATIC_URL }}js/qommon.fileupload.js"></script>
12     <script type="text/javascript" src="{{ STATIC_URL }}js/bootstrap-datetimepicker.js"></script>
13     <script type="text/javascript" src="{{ STATIC_URL }}js/bootstrap-datetimepicker.fr.js"></script>
14     <script type="text/javascript" src="{% xstatic "select2.js" "select2.min.js" %}"></script>
15     <script type="text/javascript" src="/static/django_select2/django_select2.js"></script>
16     {% endblock %}
17
18     {% block css %}
19     {{ block.super }}
20     <link href="{% xstatic "select2.css" "select2.min.css" %}" rel="stylesheet">
21     <link href="{{ STATIC_URL }}css/datetimepicker.css" rel="stylesheet" type="text/css"/>
22     {% endblock %}
23
24     {% block site-title %}PanikDB{% endblock %}
25
26     {% block sidepage %}
27     {% endblock %}
28
29     {% block subheader %}
30     <div id="search">
31       {% if user.id %}
32       <form class="gadjo-popup-ignore" action="{% url 'haystack_search' %}">
33         <input type="search" name="q" placeholder="Rechercher"/>
34         <button class="icon-search"></button>
35       </form>
36       {% endif %}
37     </div>
38     {% endblock %}
39
40     {% block more-user-links %}
41             <a href="{% url 'home' %}" class="icon-home-space">Accueil</a>
42             <a target="blank" href="http://stats.radiopanik.org/index.php?module=Login&action=logme&login=panikdb&password=d48fb8e3a453d965901339e6b020538f" class="icon-bar-chart">Statistiques</a>
43             {% block online-url %}
44             {% if object and object|online_url %}
45             <a href="{{ object|online_url }}" target="blank" class="icon-eye-open">Voir en ligne</a>
46             {% endif %}
47             {% endblock %}
48             {% block manage-focus %}
49             {% if object|can_focus or object|has_focus %}
50             {% if perms.emissions.add_focus %}
51             {% if object|has_focus %}
52             <a class="icon-pushpin" href="{{ object|unset_focus_url }}">Retirer le focus</a>
53             {% else %}
54             <a class="icon-pushpin" href="{{ object|set_focus_url }}">Mettre en focus</a>
55             {% endif %}
56             {% endif %}
57             {% endif %}
58             {% endblock %}
59
60             {% if object %}
61             {% with object|context_url as context_url %}
62             {% if context_url %}
63             <span class="middle">
64                     <a href="{{ object|context_url }} ">{{ object|context_title }}</a>
65             </span>
66             {% endif %}
67             {% endwith %}
68             {% endif %}
69     {% endblock %}
70
71     {% block user-links %}
72             <span>{{ user.first_name }} {{ user.last_name }} ({{ user.username }})</span>
73             <a href="{% url 'auth_password_change' %}">Changement de mot de passe</a>
74             <a class="icon-signout" href="{% url 'logout' %}">Déconnexion</a>
75             </span>
76     {% endblock %}
77
78     {% block page-end %}
79 <script>
80 $(document).ready(function() {
81   $('select[multiple=multiple]').select2();
82   $('select[multiple=multiple]').next('.helptext').hide();
83   $('select#id_emission').select2();
84   $('select#id_category').select2();
85 });
86 </script>
87   {% endblock %}
88
89     {% block footer %}
90     {% endblock %}