base.html 3.46 KB
Newer Older
1 2
{% load url from future %}
{% load i18n %}
fred's avatar
fred committed
3
{% load panikdbtags %}
4 5 6 7 8
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8"/>
    <title>{% block page-title %}Panik DB{% endblock %}</title>
9 10 11 12 13

    <script type="text/javascript" src="{{ STATIC_URL }}js/jquery.js"></script>
    <script type="text/javascript" src="{{ STATIC_URL }}js/bootstrap.js"></script>
    <link href="{{ STATIC_URL }}css/bootstrap.css" rel="stylesheet" type="text/css"/>

fred's avatar
fred committed
14
    <script src="{{ STATIC_URL }}js/jquery-ui.js"></script>
fred's avatar
fred committed
15 16 17
    <script src="{{ STATIC_URL }}js/jquery.fileupload.js"></script>
    <script src="{{ STATIC_URL }}js/jquery.iframe-transport.js"></script>
    <script src="{{ STATIC_URL }}js/qommon.fileupload.js"></script>
fred's avatar
fred committed
18
    <script src="{{ STATIC_URL }}select2/select2.min.js"></script>
19

fred's avatar
fred committed
20
    <link href="{{ STATIC_URL }}select2/select2.css" rel="stylesheet" type="text/css"/>
21 22 23 24 25
    <link href="{{ STATIC_URL }}css/datetimepicker.css" rel="stylesheet" type="text/css"/>
    <script type="text/javascript" src="{{ STATIC_URL }}js/bootstrap-datetimepicker.js"></script>

    <link rel="stylesheet" type="text/css" media="all" href="{{ STATIC_URL }}css/style.css"/>

26
    <!-- <script src="{{ STATIC_URL }}js/qommon.ahah.js"></script> -->
fred's avatar
fred committed
27
    <link rel="stylesheet" type="text/css" media="all" href="{{ STATIC_URL }}css/smoothness/jquery-ui-1.10.0.custom.css"/>
28

29 30 31 32 33 34 35 36 37
    {% block extrascripts %}
    {% endblock %}
  </head>
  <body>
  {% block wrapper %}
  <div id="wrap">
  {% endblock %}
    {% if not popup %}
    <div id="header">
fred's avatar
fred committed
38
      <h1><a href="{% url 'home' %}">Panik DB</a></h1>
39 40
    </div>
    <div id="splash">
fred's avatar
fred committed
41 42 43 44
      <form action="{% url 'haystack_search' %}">
        <input type="search" name="q" placeholder="Rechercher"/>
        <button class="icon-search"></button>
      </form>
45 46 47 48 49
    </div>
    <div id="user-links">
    {% block user-links %}
            <a href="{% url 'home' %}" class="icon-home-space">Accueil</a>
            <a target="blank" href="http://stats.radiopanik.org/index.php?module=Login&action=logme&login=panikdb&password=d48fb8e3a453d965901339e6b020538f" class="icon-bar-chart">Statistiques</a>
fred's avatar
fred committed
50 51 52 53
            {% block online-url %}
            {% if object %}
            <a href="{{ object|online_url }}" target="blank" class="icon-eye-open">Voir en ligne</a>
            {% endif %}
54
            {% endblock %}
55 56
            {% block more-user-links %}
            {% endblock %}
57

fred's avatar
fred committed
58 59 60 61 62 63 64 65 66 67
            {% if object %}
            {% with object|context_url as context_url %}
            {% if context_url %}
            <span class="middle">
                    <a href="{{ object|context_url }} ">{{ object|context_title }}</a>
            </span>
            {% endif %}
            {% endwith %}
            {% endif %}

68 69
            <span class="right">
            <a href="{% url 'auth_password_change' %}">Changement de mot de passe</a>
fred's avatar
fred committed
70
            <a class="icon-signout" href="{% url 'logout' %}">Déconnexion</a>
71 72
            </span>
    {% endblock %}
73 74 75
    </div>
    {% endif %}
    <div id="content">
76 77 78 79
      <div id="appbar">
        {% block appbar %}
        {% endblock %}
      </div>
80 81 82 83
      {% block beforecontent %}
      {% endblock %}
      {% block content %}
      {% endblock %}
84
      <br style="clear: both;"/>
85 86 87
    </div>
  </div>
  {% block page-end %}
fred's avatar
fred committed
88 89 90 91
<script>
$(document).ready(function() {
  $('select[multiple=multiple]').select2();
  $('select[multiple=multiple]').next('.helptext').hide();
92 93
  $('select#id_emission').select2();
  $('select#id_category').select2();
fred's avatar
fred committed
94 95
});
</script>
96 97 98
  {% endblock %}
  </body>
</html>