base.html 5.84 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
{% load admin_static admin_urls %}{% load firstof from future %}<!DOCTYPE html>
<html lang="{{ LANGUAGE_CODE|default:"en-us" }}" {% if LANGUAGE_BIDI %}dir="rtl"{% endif %}>
<head>
<title>{% block title %}{% endblock %}</title>
<link rel="stylesheet" type="text/css" href="{% block stylesheet %}{% static "admin/css/base.css" %}{% endblock %}" />
{% block extrastyle %}{% endblock %}
<!--[if lte IE 7]><link rel="stylesheet" type="text/css" href="{% block stylesheet_ie %}{% static "admin/css/ie.css" %}{% endblock %}" /><![endif]-->
{% if LANGUAGE_BIDI %}<link rel="stylesheet" type="text/css" href="{% block stylesheet_rtl %}{% static "admin/css/rtl.css" %}{% endblock %}" />{% endif %}
<script type="text/javascript">window.__admin_media_prefix__ = "{% filter escapejs %}{% static "admin/" %}{% endfilter %}";</script>
<script type="text/javascript">window.__admin_utc_offset__ = "{% filter escapejs %}{% now "Z" %}{% endfilter %}";</script>
{% block extrahead %}{% endblock %}
<style type="text/css">
body.cms-admin-sideframe #header{display:none}
body.cms-admin-sideframe #container{padding-top:45px}
body.cms-admin-sideframe #container .breadcrumbs{display:block;background:#666 !important}
body.cms-admin-sideframe #content{padding-top:10px}
body.cms-admin-sideframe #content h1:first-child{margin-top:0}
body.cms-admin-sideframe .change-form #content{margin-top:0}
body.cms-admin-sideframe .submit-row{padding:10px 10px 5px !important}
body.cms-admin-sideframe .submit-row input.default,.object-tools .addlink{font-weight:200 !important;padding:5px 12px !important;margin-bottom:5px !important;border:1px solid #0e72ec !important;background-image:-webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #0e97ec), color-stop(100%, #0e72ec)) !important;background-image:-webkit-linear-gradient(top, #0e97ec,#0e72ec) !important;background-image:-moz-linear-gradient(top, #0e97ec,#0e72ec) !important;background-image:-o-linear-gradient(top, #0e97ec,#0e72ec) !important;background-image:linear-gradient(top, #0e97ec,#0e72ec) !important;-webkit-box-shadow:inset #6accf6 0px 1px 0px;-moz-box-shadow:inset #6accf6 0px 1px 0px;box-shadow:inset #6accf6 0px 1px 0px}
body.cms-admin-sideframe .submit-row input.default:hover,.submit-row input.default:active,.submit-row input.default:focus,.object-tools .addlink:hover,.object-tools .addlink:active,.object-tools .addlink:focus{background:#0e72ec !important;-webkit-box-shadow:none !important;-moz-box-shadow:none !important;box-shadow:none !important}
body.cms-admin-sideframe .submit-row input.default:active,.submit-row input.default:focus,.object-tools .addlink:active,.object-tools .addlink:focus{background:#0b5bbc !important}.object-tools .recoverlink,.submit-row input{font-weight:200 !important;padding:5px 12px !important;margin-bottom:5px !important;border:1px solid #e6e6e6 !important;-webkit-box-shadow:none !important;-moz-box-shadow:none !important;box-shadow:none !important}
div.cms-content-wizard form input, div.cms-content-wizard form textarea {border-radius: 3px; width: 100% !important;}
label.translatable-field:before { color: red; content:"\26FF";}
div.parler-language-tabs span.current:before { color: red; content:"\26FF";}
</style>
{% block blockbots %}<meta name="robots" content="NONE,NOARCHIVE" />{% endblock %}
</head>
{% load i18n %}

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

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

    {% if not is_popup %}
    <!-- Header -->
{#    <div id="header">#}
{#        <div id="branding">#}
{#        {% block branding %}{% endblock %}#}
{#        </div>#}
{#        {% if user.is_active and user.is_staff %}#}
{#        <div id="user-tools">#}
{#            {% block welcome-msg %}#}
{#                {% trans 'Welcome,' %}#}
{#                <strong>{% firstof user.get_short_name user.get_username %}</strong>.#}
{#            {% endblock %}#}
{#            {% block userlinks %}#}
{#                {% url 'django-admindocs-docroot' as docsroot %}#}
{#                {% if docsroot %}#}
{#                    <a href="{{ docsroot }}">{% trans 'Documentation' %}</a> /#}
{#                {% endif %}#}
{#                {% if user.has_usable_password %}#}
{#                <a href="{% url 'admin:password_change' %}">{% trans 'Change password' %}</a> /#}
{#                {% endif %}#}
{#                <a href="{% url 'admin:logout' %}">{% trans 'Log out' %}</a>#}
{#            {% endblock %}#}
{#        </div>#}
{#        {% endif %}#}
{#        {% block nav-global %}{% endblock %}#}
{#    </div>#}
    <!-- END Header -->
{#    {% block breadcrumbs %}#}
    <div class="breadcrumbs">
{#    <a href="{% url 'admin:index' %}">{% trans 'Home' %}</a>#}
{#    {% if title %} &rsaquo; {{ title }}{% endif %}#}
{% if opts.verbose_name and opts.verbose_name %}<h2 style="color: #FFF;"><a href="{% url opts|admin_urlname:'changelist' %}">{{ opts.verbose_name_plural|capfirst }}</a>
&rsaquo; {% if add %}{% trans 'Add' %} {{ opts.verbose_name }}{% else %}{{ original|truncatewords:"18" }}{% endif %}</h2>{% endif %}
    </div>
{#    {% endblock %}#}
    {% endif %}

    {% 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 -->
    <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>
    <!-- END Content -->

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

</body>
</html>