mirror of https://github.com/interlegis/sigi.git
Marcio Mazza
10 years ago
3 changed files with 37 additions and 13 deletions
@ -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 %} |
||||
|
@ -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…
Reference in new issue