base.html 2.83 KB
Newer Older
1
{% load i18n %}
2 3
{% load staticfiles %}
{% load compressed %}
4
<!DOCTYPE html>
5 6 7 8 9 10
<html lang="{{lang}}">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
11
    <link rel="icon" type="image/png" href="{% static "dashboard/img/favicon.png" %}"/>
12

13
    <title>{% block title %}{% block title-page %}{% endblock %} | {% block title-site %}CIRCLE{% endblock %}{% endblock %}</title>
14

15
    {% compressed_css 'all' %}
16 17 18 19 20 21 22 23 24

    <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->

    {% block extra_link %}{% endblock %}

    {% block extra_css %}{% endblock %}
25 26 27 28
  </head>

  <body>
    <div class="navbar navbar-inverse navbar-fixed-top">
29
      <div class="navbar-header">
30 31 32 33 34 35 36 37 38 39
        {% block navbar-brand %}{% endblock %}
          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
      </div><!-- .navbar-header -->
      <div class="collapse navbar-collapse">
        {% block navbar %}{% endblock %}
      </div><!-- .collapse .navbar-collapse -->
40
    </div><!-- navbar navbar-inverse navbar-fixed-top -->
41 42

    <div class="container">
43
      {% block messages %}
44 45 46 47 48
        <div class="messagelist">
        {% if messages %}
          {% for message in messages %}
            <div class="alert
              {% if message.tags %} alert-{% if message.tags == "error" %}danger{% else %}{{ message.tags }}{% endif %}{% endif %}">
49
          {{ message|safe }}
50 51 52
            </div>
          {% endfor %}
        {% endif %}
53 54 55 56 57
      </div>
      {% endblock messages %}
      {% block content %}
        <h1 class="alert alert-error">Please override "content" block.</h1>
      {% endblock %}
58
    </div> <!-- /container -->
59

60
    <footer>
61 62 63 64
      <a href="{% url "info.legal" %}">{% trans "Legal notice" %}</a> |
      <a href="{% url "info.policy" %}">{% trans "Policy" %}</a> |
      <a href="{% url "info.help" %}">{% trans "Help" %}</a> |
      <a href="{% url "info.support" %}">{% trans "Support" %}</a>
65 66
      <span class="pull-right">{{ COMPANY_NAME }}</span>
    </footer>
67
  </body>
68

69 70
  <script src="{% static "jquery/dist/jquery.min.js" %}"></script>
  {% compressed_js 'all' %}
71
  <script src="{{ STATIC_URL }}jsi18n/{{ LANGUAGE_CODE }}/djangojs.js"></script>
72
  {% include 'autocomplete_light/static.html' %}
73 74 75 76 77 78 79 80 81

  {% block extra_script %}
  {% endblock %}

  {% block extra_js %}
  {% endblock %}

  {% block extra_etc %}
  {% endblock %}
82 83 84 85 86 87 88

<script>
yourlabs.TextWidget.prototype.getValue = function(choice) {
    return choice.children().html();
}
</script>

89
</html>