Browse Source

Redesign change_form of local parliament

producao
Marcio Mazza 10 years ago
parent
commit
16bf3718ac
  1. 28
      sigi/apps/casas/templates/casas/change_form.html
  2. 2
      sigi/apps/metas/templates/metas/mapa.html
  3. 20
      templates/base_change_form.html

28
sigi/apps/casas/templates/casas/change_form.html

@ -1,14 +1,18 @@
{% extends "admin/change_form.html" %} {% extends "base_change_form.html" %}
{% load i18n reporting_tags %} {% load i18n %}
{% block object-tools %} {% block object-tools-items %}
{% if change %}{% if not is_popup %} <li><a href="report_complete/">
<ul class="object-tools"> <span class="glyphicon glyphicon-list-alt"></span>
<li><a href="report_complete/">Relatório</a></li> Relatório
<li><a href="labels/">Etiqueta</a></li> </a></li>
<li><a href="labels_sem_presidente/">Etiqueta sem presidente</a></li> <li><a href="labels/">
<li><a href="history/" class="historylink">{% trans "History" %}</a></li> <span class="glyphicon glyphicon-th"></span>
{% if has_absolute_url %}<li><a href="../../../r/{{ content_type_id }}/{{ object_id }}/" class="viewsitelink">{% trans "View on site" %}</a></li>{% endif%} Etiqueta
</ul> </a></li>
{% endif %}{% endif %} <li><a href="labels_sem_presidente/">
<span class="glyphicon glyphicon-th-large"></span>
Etiqueta sem presidente
</a></li>
{{ block.super }}
{% endblock %} {% endblock %}

2
sigi/apps/metas/templates/metas/mapa.html

@ -44,7 +44,7 @@
{% block object-tools-items %} {% block object-tools-items %}
<li><a href="/dashboard/mapsum/" id="summary_report" onclick="return false;"> <li><a href="/dashboard/mapsum/" id="summary_report" onclick="return false;">
<span class="glyphicon glyphicon-th-large"></span> <span class="glyphicon glyphicon-list-alt"></span>
Relatório resumo Relatório resumo
</a></li> </a></li>
<li><a href="/dashboard/maplist/" id="list_report" onclick="return false;"> <li><a href="/dashboard/maplist/" id="list_report" onclick="return false;">

20
templates/base_change_form.html

@ -0,0 +1,20 @@
{% extends "admin/change_form.html" %}
{% load i18n admin_urls %}
{% block object-tools %}
{% if change %}{% if not is_popup %}
<ul class="nav navbar-nav navbar-left">
{% block object-tools-items %}
<li>
{% url opts|admin_urlname:'history' original.pk|admin_urlquote as history_url %}
<a href="{% add_preserved_filters history_url %}" class="historylink">
<span class="glyphicon glyphicon-book"></span>
{% trans "History" %}
</a>
</li>
{% if has_absolute_url %}<li><a href="{% url 'admin:view_on_site' content_type_id original.pk %}" class="viewsitelink">{% trans "View on site" %}</a></li>{% endif%}
{% endblock %}
</ul>
{% endif %}{% endif %}
{% endblock %}
Loading…
Cancel
Save