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

    <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
13
    <script src="{{ STATIC_URL }}js/jquery-ui.js"></script>
fred's avatar
fred committed
14 15 16
    <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
17
    <script src="{{ STATIC_URL }}select2/select2.min.js"></script>
18

fred's avatar
fred committed
19
    <link href="{{ STATIC_URL }}select2/select2.css" rel="stylesheet" type="text/css"/>
20 21 22 23 24
    <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"/>

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

28 29 30 31 32 33 34 35 36
    {% block extrascripts %}
    {% endblock %}
  </head>
  <body>
  {% block wrapper %}
  <div id="wrap">
  {% endblock %}
    {% if not popup %}
    <div id="header">
fred's avatar
fred committed
37
      <h1><a href="{% url 'home' %}">Panik DB</a></h1>
38 39
    </div>
    <div id="splash">
40 41 42 43 44 45 46 47 48 49 50 51 52 53
    </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>
            {% block online-page %}
            <!--<a href="#" class="icon-eye-open">Page en ligne</a>-->
            {% endblock %}

            <span class="right">
            <a href="{% url 'auth_password_change' %}">Changement de mot de passe</a>
            <a href="{% url 'logout' %}">Déconnexion</a>
            </span>
    {% endblock %}
54 55 56
    </div>
    {% endif %}
    <div id="content">
57 58 59 60
      <div id="appbar">
        {% block appbar %}
        {% endblock %}
      </div>
61 62 63 64
      {% block beforecontent %}
      {% endblock %}
      {% block content %}
      {% endblock %}
65
      <br style="clear: both;"/>
66 67 68
    </div>
  </div>
  {% block page-end %}
fred's avatar
fred committed
69 70 71 72
<script>
$(document).ready(function() {
  $('select[multiple=multiple]').select2();
  $('select[multiple=multiple]').next('.helptext').hide();
73 74
  $('select#id_emission').select2();
  $('select#id_category').select2();
fred's avatar
fred committed
75 76
});
</script>
77 78 79
  {% endblock %}
  </body>
</html>