]> git.0d.be Git - panikdb.git/blob - panikdb/templates/base.html
update popup-ignore class name
[panikdb.git] / panikdb / templates / base.html
1 {% load url from future %}{% load i18n %}{% load panikdbtags %}<!DOCTYPE html>
2 <html>
3   <head>
4     <meta charset="utf-8"/>
5     <title>{% block page-title %}Panik DB{% endblock %}</title>
6
7     <script type="text/javascript" src="{{ STATIC_URL }}js/jquery.js"></script>
8     <script type="text/javascript" src="{{ STATIC_URL }}js/bootstrap.js"></script>
9     <link href="{{ STATIC_URL }}css/bootstrap.css" rel="stylesheet" type="text/css"/>
10
11     <script src="{{ STATIC_URL }}js/jquery-ui.js"></script>
12     <script src="{{ STATIC_URL }}js/jquery.fileupload.js"></script>
13     <script src="{{ STATIC_URL }}js/jquery.iframe-transport.js"></script>
14     <script src="{{ STATIC_URL }}js/qommon.fileupload.js"></script>
15     <script src="{{ STATIC_URL }}select2/select2.min.js"></script>
16
17     <link href="{{ STATIC_URL }}select2/select2.css" rel="stylesheet" type="text/css"/>
18     <link href="{{ STATIC_URL }}css/datetimepicker.css" rel="stylesheet" type="text/css"/>
19     <script type="text/javascript" src="{{ STATIC_URL }}js/bootstrap-datetimepicker.js"></script>
20
21     <link rel="stylesheet" type="text/css" media="all" href="{{ STATIC_URL }}css/style.css"/>
22
23     <!-- <script src="{{ STATIC_URL }}js/qommon.ahah.js"></script> -->
24     <link rel="stylesheet" type="text/css" media="all" href="{{ STATIC_URL }}css/smoothness/jquery-ui-1.10.0.custom.css"/>
25
26     {% block extrascripts %}
27     {% endblock %}
28   </head>
29   <body {% block bodyattr %}{% endblock %}>
30   {% block wrapper %}
31   <div id="wrap">
32   {% endblock %}
33     {% if not popup %}
34     <div id="header">
35       <h1><a href="{% url 'home' %}">Panik DB</a></h1>
36     </div>
37     <div id="splash">
38       {% if user.id %}
39       <form class="gadjo-popup-ignore" action="{% url 'haystack_search' %}">
40         <input type="search" name="q" placeholder="Rechercher"/>
41         <button class="icon-search"></button>
42       </form>
43       {% endif %}
44     </div>
45     <div id="user-links">
46     {% block user-links %}
47             <a href="{% url 'home' %}" class="icon-home-space">Accueil</a>
48             <a target="blank" href="http://stats.radiopanik.org/index.php?module=Login&action=logme&login=panikdb&password=d48fb8e3a453d965901339e6b020538f" class="icon-bar-chart">Statistiques</a>
49             {% block online-url %}
50             {% if object and object|online_url %}
51             <a href="{{ object|online_url }}" target="blank" class="icon-eye-open">Voir en ligne</a>
52             {% endif %}
53             {% endblock %}
54             {% block manage-focus %}
55             {% if object|can_focus %}
56             {% if perms.emissions.add_focus %}
57             {% if object|has_focus %}
58             <a class="icon-pushpin" href="{{ object|unset_focus_url }}">Retirer le focus</a>
59             {% else %}
60             <a class="icon-pushpin" href="{{ object|set_focus_url }}">Mettre en focus</a>
61             {% endif %}
62             {% endif %}
63             {% endif %}
64             {% endblock %}
65             {% block more-user-links %}
66             {% endblock %}
67
68             {% if object %}
69             {% with object|context_url as context_url %}
70             {% if context_url %}
71             <span class="middle">
72                     <a href="{{ object|context_url }} ">{{ object|context_title }}</a>
73             </span>
74             {% endif %}
75             {% endwith %}
76             {% endif %}
77
78             <span class="right">
79             <span>{{ user.first_name }} {{ user.last_name }} ({{ user.username }})</span>
80             <a href="{% url 'auth_password_change' %}">Changement de mot de passe</a>
81             <a class="icon-signout" href="{% url 'logout' %}">Déconnexion</a>
82             </span>
83     {% endblock %}
84     </div>
85     {% endif %}
86     <div id="content">
87       <div id="appbar">
88         {% block appbar %}
89         {% endblock %}
90       </div>
91       {% block beforecontent %}
92 {% if messages %}
93 <ul class="messages">
94     {% for message in messages %}
95     <li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
96     {% endfor %}
97 </ul>
98 <script>
99 $(document).ready(function() { $('.messages').delay(5000).fadeOut('slow'); });
100 </script>
101 {% endif %}
102       {% endblock %}
103       {% block content %}
104       {% endblock %}
105       <br style="clear: both;"/>
106     </div>
107   </div>
108   {% block page-end %}
109 <script>
110 $(document).ready(function() {
111   $('select[multiple=multiple]').select2();
112   $('select[multiple=multiple]').next('.helptext').hide();
113   $('select#id_emission').select2();
114   $('select#id_category').select2();
115 });
116 </script>
117   {% endblock %}
118   </body>
119 </html>