base.html 3.74 KB
{% load url from future %}<!DOCTYPE html PUBLIC
        "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3c.org/1999/xhtml" xml:lang="pl" lang="pl">
<head>
    <title>{% block title %}{% endblock %}</title>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <link rel="shortcut icon" href="{{ MEDIA_URL }}forge.ico"
          type="image/x-icon"/>
    <script type="text/javascript"
            src="{{ MEDIA_URL }}js/lib/jquery-1.10.2.js"></script>
    <script type="text/javascript"
            src="{{ MEDIA_URL }}js/lib/jquery.json-2.2.min.js"></script>
    <script type="text/javascript"
            src="{{ MEDIA_URL }}js/lib/jquery-ui-1.11.2.custom.min.js"></script>
    <script type="text/javascript"
            src="{{ MEDIA_URL }}js/lib/jquery.ui.datepicker-pl.js"></script>
    <script type="text/javascript"
            src="{{ MEDIA_URL }}js/lib/jquery.multiselect.js"></script>
    <script type="text/javascript">
        $.fn.multiselect2 = $.fn.multiselect;
    </script>
    <script type="text/javascript"
            src="{{ MEDIA_URL }}js/base-layout.js"></script>
    <script type="text/javascript" src="{{ MEDIA_URL }}js/common.js"></script>
    {% if paginer %}
        <script type="text/javascript"
                src="{{ MEDIA_URL }}js/paginer.js"></script>
    {% endif %}
    {% load script jsonify %}
    {% script %}
        var $dj = {};
        {% for name,var in js_vars.iteritems %}
            $dj.{{ name }} = {{ var|jsonify }};
        {% endfor %}
    {% endscript %}
    <link rel="stylesheet"
          href="{{ MEDIA_URL }}css/lib/smoothness/jquery-ui-1.11.2.custom.css"
          type="text/css" media="screen" charset="utf-8"/>
    <link rel="stylesheet" type="text/css"
          href="{{ MEDIA_URL }}css/lib/jquery.multiselect.css"/>
    <link rel="stylesheet" href="{{ MEDIA_URL }}css/general.css" type="text/css"
          media="screen" charset="utf-8"/>
    <link rel="stylesheet" href="{{ MEDIA_URL }}css/inflection_table.css"
          type="text/css" media="screen" charset="utf-8"/>
    {% block extrahead %}{% endblock %}
</head>
{% load i18n %}

<body>

<!-- Container -->
<!--div id="container"-->

<!-- Header -->
<div id="header">
    <div id="branding">
        {% block branding %}{% endblock %}
    </div>
    {% if user.is_active %}
        <div id="user-tools">
            {# if debug #}
            <span id="show-debug">debug <span id="hide-debug"></span></span>
            {# endif #}
            <strong>{% filter force_escape %}
                {{ user.username }}{% endfilter %}</strong>
            {% block userlinks %}
                <a href="{% url 'settings' %}">
                    Ustawienia</a> /
                <a href="{% url 'auth_logout' %}">
                    {% trans 'Log out' %}</a>
            {% endblock %}
        </div>
    {% endif %}
    {% include 'main_menu.html' %}
    {% block nav-global %}{% endblock %}

    {% if messages %}
        <ul class="messagelist">{% for message in messages %}
            <li{% if message.tags %}
                class="{{ message.tags }}"{% endif %}>{{ message }}</li>
        {% endfor %}</ul>
    {% endif %}
</div>
<!-- END Header -->
<!-- Content -->
<div id="content">
    {% block pretitle %}{% endblock %}
    {% block content_title %}{% if title %}<h1>{{ title }}</h1>
    {% endif %}{% endblock %}
    {% block content %}
        {% block object-tools %}{% endblock %}
        {{ content }}
    {% endblock %}
    {% block sidebar %}{% endblock %}
</div>
<!-- END Content -->

{% block footer %}
    <div id="footer"></div>{% endblock %}
{% block modal_elements %}{% endblock %}
{# if debug #}
<iframe id="debug">
</iframe>
{# endif #}
<!--/div-->
<!-- END Container -->

</body>
</html>