<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="{{ LANGUAGE_CODE }}" xml:lang="{{ LANGUAGE_CODE }}" {% if LANGUAGE_BIDI %}dir="rtl"{% endif %}>
<head>
<title>{% block title %}{% endblock %}</title>
{% block blockbots %}<meta name="robots" content="NONE,NOARCHIVE" />{% endblock %}

<!-- LOADING -->
{% load static i18n %}

<!-- STYLESHEETS / EXTRASTYLE -->
{% block stylesheets %}
    <link rel="stylesheet" type="text/css" href="{% static "grappelli/css/base.css" %}" />
{% endblock %}

{% block extrastyle %}{% endblock %}

<!-- JAVASCRIPTS / EXTRAHEAD -->
{% block extrahead %}{% endblock %}

{% if LANGUAGE_BIDI %}
{% block rtl_styles %}<link rel="stylesheet" type="text/css" href="{% block stylesheet_rtl %}{% static "grappelli/css/rtl.css" %}{% endblock %}" />{% endblock %}
{% endif %}

</head>

<body class="{% if is_popup %}popup {% endif %}{% block bodyclass %}{% endblock %}">

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

    <!-- HEADER -->
    {% if not is_popup %}
    {% include "admin/includes_grappelli/header.html" %}
    {% endif %}

    <!-- BREADCRUMBS -->
    {% block breadcrumbs %}<div class="breadcrumbs"><a href="/">{% trans 'Home' %}</a>{% if title %} &rsaquo; {{ title }}{% endif %}</div>{% endblock %}

    <!-- MESSAGES -->
    {% if messages %}
    <ul class="messagelist">{% for message in messages %}<li class="{{ message.tags }}">{{ message }}</li>{% endfor %}</ul>
    {% endif %}

    {% block before_content %}{% endblock %}

    <!-- CONTENT -->
    <div id="content" class="{% block coltype %}colM{% endblock %}">
        {% block pretitle %}{% endblock %}
        {% block content_title %}{% if title %}<h1>{{ title }}</h1>{% endif %}{% endblock %}
        {% block content %}
        {% block object-tools %}{% endblock %}
        {{ content }}
        {% endblock %}
        {% block sidebar %}{% endblock %}
        <br class="clear" />
    </div>

    <!-- FOOTER -->
    {% block footer %}<div id="footer"></div>{% endblock %}

</div>
</body>
</html>
