{% extends "se/base.html" %}
{% load i18n static %}

{% block head %}
    {# {% if LANGUAGE_BIDI %}<link rel="stylesheet" type="text/css" href="{% block stylesheet_rtl %}{% static "admin/css/rtl.css" %}{% endblock %}">{% endif %} #}
    {# <link rel="stylesheet" type="text/css" href="{% static "admin/css/responsive.css" %}"> #}
    <link rel="stylesheet" href="{% static "se/admin-base.css" %}">
    <script src="{% static 'se/admin.js' %}"></script>
    {# {% if LANGUAGE_BIDI %}<link rel="stylesheet" type="text/css" href="{% static "admin/css/responsive_rtl.css" %}">{% endif %} #}
    {% block extrastyle %}{% endblock %}
    {% block extrahead %}{% endblock %}
{% endblock %}
{% load i18n %}

{% block bodytag %}
<body class="{% if is_popup %}popup {% endif %}{% block bodyclass %}{% endblock %}"
  data-admin-utc-offset="{% now "Z" %}">
{% endblock %}

{% block body %}
    {% if not is_popup %}
    <!-- Header -->
    <div>
        {% block nav-global %}{% endblock %}
    </div>
    <!-- END Header -->
    {% block breadcrumbs %}
    <div class="breadcrumbs">
    <a href="{% url 'admin:index' %}">Administration</a>
    {% if title %} &rsaquo; {{ title }}{% endif %}
    </div>
    {% endblock %}
    {% endif %}

    <div class="main shifted" id="main">
      {% if not is_popup and is_nav_sidebar_enabled %}
        {% block nav-sidebar %}
          {% include "admin/nav_sidebar.html" %}
        {% endblock %}
      {% endif %}
      <div class="content">
        {% block messages %}
          {% if messages %}
            <ul class="messagelist">{% for message in messages %}
              <li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message|capfirst }}</li>
            {% endfor %}</ul>
          {% endif %}
        {% endblock messages %}
        <!-- Content -->
        <main id="content">
          {% block content_subtitle %}{% if subtitle %}<h4>{{ subtitle }}</h4>{% endif %}{% endblock %}
          {% block content %}
            {% block object-tools %}{% endblock %}
            {{ content }}
          {% endblock %}
          {% block sidebar %}{% endblock %}
          <br class="clear">
        </main>
        <!-- END Content -->
      </div>
    </div>
{% endblock %}

{% block footer %}
  {% include "se/components/footer.html" %}
{% endblock %}
