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