mirror of https://github.com/interlegis/sigi.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
175 lines
7.8 KiB
175 lines
7.8 KiB
{% load admin_static bootstrapped_goodies_tags %}
|
|
{% load tree_menu_tags %}
|
|
<!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|default:"en-us" }}" {% if LANGUAGE_BIDI %}dir="rtl"{% endif %}>
|
|
<head>
|
|
<title>{% block title %}{% endblock %}</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
|
|
|
{% block extrastyle %}{% endblock %}
|
|
|
|
<!-- Le styles, placed after extrastyle to correctly override default styling -->
|
|
<link href="{% static "bootstrap/css/bootstrap.min.css" %}" rel="stylesheet"/>
|
|
<style type="text/css">
|
|
body {
|
|
padding: 10px 20px 40px;
|
|
}
|
|
</style>
|
|
<link href="{% static "bootstrap/css/bootstrap-theme.min.css" %}" rel="stylesheet"/>
|
|
<link rel="stylesheet" type="text/css" href="{% static "admin/css/overrides.css" %}" />
|
|
|
|
<!-- <link rel="stylesheet" type="text/css" href="{% block stylesheet %}{% static "admin/css/base.css" %}{% endblock %}" /> -->
|
|
<script type="text/javascript">
|
|
//<![CDATA[
|
|
window.__admin_media_prefix__ = "{% filter escapejs %}{% static "admin/" %}{% endfilter %}";
|
|
//]]>
|
|
</script>
|
|
<script src="{% static "admin/js/jquery-1.9.1.min.js" %}"></script>
|
|
<script src="{% static "admin/js/jquery-migrate-1.2.1.min.js" %}"></script>
|
|
<script src="{% static "bootstrap/js/bootstrap.min.js" %}"></script>
|
|
|
|
{% block extrahead %}{% endblock %}
|
|
|
|
{% block blockbots %}<meta name="robots" content="NONE,NOARCHIVE" />{% endblock %}
|
|
<script type="text/javascript">
|
|
//<![CDATA[
|
|
(function($) {
|
|
$(document).ready(function() {
|
|
$('input[type="submit"]').addClass('btn');
|
|
$('[title]').tooltip();
|
|
});
|
|
}(jQuery));
|
|
//]]>
|
|
</script>
|
|
</head>
|
|
{% load i18n %}
|
|
|
|
<body class="{% if is_popup %}popup {% endif %}{% block bodyclass %}{% endblock %}">
|
|
|
|
<!-- Container -->
|
|
<div class="container-fluid">
|
|
|
|
{% if not is_popup %}
|
|
|
|
{% block container-top %}{% endblock %}
|
|
|
|
<!-- Header -->
|
|
<div class="navbar navbar-static-top">
|
|
<div class="navbar-inner">
|
|
<div class="container-fluid">
|
|
<div class="navbar-header">
|
|
<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>
|
|
{% block branding %}{% endblock %}
|
|
</div>
|
|
<div class="navbar-collapse collapse navbar-right">
|
|
<ul class="nav navbar-nav">
|
|
{% if user.is_active and user.is_staff %}
|
|
<li class="dropdown">
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown">{% trans 'Welcome,' %} <strong>{% filter force_escape %}{% firstof user.get_short_name user.get_username user.first_name user.username %}{% endfilter %}</strong> <span class="caret"></span></a>
|
|
<ul class="dropdown-menu">
|
|
{% if user.has_usable_password %}
|
|
<li><a href="{% url 'admin:password_change' %}">{% trans 'Change password' %}</a></li>
|
|
{% endif %}
|
|
<li><a href="{% url 'admin:logout' %}">{% trans 'Log out' %}</a></li>
|
|
</ul>
|
|
</li>
|
|
{% block languages %}
|
|
<li class="divider-vertical"></li>
|
|
{% language_selector %}
|
|
{% endblock languages %}
|
|
{% block logs %}
|
|
<li class="dropdown" id="recent-actions-module">
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown">{% trans 'Recent Actions' %} <b class="caret"></b></a>
|
|
{% load log %}
|
|
{% get_admin_log 10 as admin_log for_user user %}
|
|
<ul class="dropdown-menu">
|
|
{% for entry in admin_log %}
|
|
<li class="{% if entry.is_addition %}addlink{% endif %}{% if entry.is_change %}changelink{% endif %}{% if entry.is_deletion %}deletelink{% endif %}">
|
|
<a href="{% if entry.is_deletion or not entry.get_admin_url %}#{% else %}{{ entry.get_admin_url }}{% endif %}">
|
|
<i class="icon-{% if entry.is_addition %}plus{% endif %}{% if entry.is_change %}edit{% endif %}{% if entry.is_deletion %}remove{% endif %}"></i>
|
|
{{ entry.object_repr }}
|
|
{% if entry.content_type %}
|
|
<span class="mini quiet">({% filter capfirst %}{% trans entry.content_type.name %}{% endfilter %})</span>
|
|
{% else %}
|
|
<span class="mini quiet">({% trans 'Unknown content' %})</span>
|
|
{% endif %}
|
|
</a>
|
|
</li>
|
|
{% empty %}
|
|
<li class="disabled"><a href="#">{% trans 'None available' %}</a></li>
|
|
{% endfor %}
|
|
</ul>
|
|
</li>
|
|
{% endblock %}
|
|
{% block userlinks %}
|
|
{% url 'django-admindocs-docroot' as docsroot %}
|
|
{% if docsroot %}
|
|
<li class="divider-vertical"></li>
|
|
<li><a href="{{ docsroot }}">{% trans 'Documentation' %}</a></li>
|
|
{% endif %}
|
|
{% endblock %}
|
|
{% endif %}
|
|
{% block nav-global %}{% endblock %}
|
|
</ul>
|
|
</div><!--/.nav-collapse -->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- END Header -->
|
|
|
|
{% block menu-principal %}
|
|
<div role="navigation" class="navbar navbar-default">
|
|
<div class="container-fluid">
|
|
<div class="navbar-header">
|
|
<button data-target=".navbar-collapse" data-toggle="collapse" class="navbar-toggle collapsed" type="button">
|
|
<span class="sr-only">Toggle navigation</span>
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
</button>
|
|
</div>
|
|
<div class="navbar-collapse collapse">
|
|
{% show_menu "Barra de navegação" "unordered-list" %}
|
|
</div><!--/.nav-collapse -->
|
|
</div><!--/.container-fluid -->
|
|
</div>
|
|
{% endblock %}
|
|
|
|
{% endif %}
|
|
|
|
<!-- Content -->
|
|
<div id="content" class="{% block coltype %}colM{% endblock %}">
|
|
{% block navbar %}
|
|
{% block pretitle %}{% endblock %}
|
|
{% block object-tools %}{% endblock %}
|
|
{% endblock navbar %}
|
|
|
|
{% block messages %}
|
|
{% if messages %}
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
{% for message in messages %}
|
|
<div class="alert alert-info {% if message.tags %}{{ message.tags }}{% endif %}">
|
|
{{ message }}
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
{% endblock messages %}
|
|
|
|
{% block content %}{{ content }}{% endblock %}
|
|
{% block sidebar %}{% endblock %}
|
|
</div>
|
|
<!-- END Content -->
|
|
|
|
{% block footer %}<footer id="footer"></footer>{% endblock %}
|
|
</div>
|
|
<!-- END Container -->
|
|
|
|
</body>
|
|
</html>
|
|
|