Browse Source

Abstract common template for parliament and paliamentarian change_form

producao
Marcio Mazza 10 years ago
parent
commit
ecd847fb2a
  1. 19
      sigi/apps/casas/templates/casas/change_form.html
  2. 15
      sigi/apps/parlamentares/templates/admin/parlamentares/parlamentar/change_form.html
  3. 14
      sigi/apps/parlamentares/templates/parlamentares/change_form.html
  4. 18
      templates/change_form_with_report_and_labels.html

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

@ -1,18 +1 @@
{% extends "base_change_form.html" %}
{% load i18n %}
{% block object-tools-items %}
<li><a href="report_complete/">
<span class="glyphicon glyphicon-list-alt"></span>
Relatório
</a></li>
<li><a href="labels/">
<span class="glyphicon glyphicon-th"></span>
Etiqueta
</a></li>
<li><a href="labels_sem_presidente/">
<span class="glyphicon glyphicon-th-large"></span>
Etiqueta sem presidente
</a></li>
{{ block.super }}
{% endblock %}
{% extends "change_form_with_report_and_labels.html" %}

15
sigi/apps/parlamentares/templates/admin/parlamentares/parlamentar/change_form.html

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

14
sigi/apps/parlamentares/templates/parlamentares/change_form.html

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

18
templates/change_form_with_report_and_labels.html

@ -0,0 +1,18 @@
{% extends "base_change_form.html" %}
{% load i18n %}
{% block object-tools-items %}
<li><a href="report_complete/">
<span class="glyphicon glyphicon-list-alt"></span>
Relatório
</a></li>
<li><a href="labels/">
<span class="glyphicon glyphicon-th"></span>
Etiqueta
</a></li>
<li><a href="labels_sem_presidente/">
<span class="glyphicon glyphicon-th-large"></span>
Etiqueta sem presidente
</a></li>
{{ block.super }}
{% endblock %}
Loading…
Cancel
Save