Browse Source

Corrige bug ao adicionar novo evento

pull/159/head
Sesostris Vieira 2 years ago
parent
commit
e05767708f
  1. 50
      sigi/apps/eventos/templates/admin/eventos/evento/change_form.html

50
sigi/apps/eventos/templates/admin/eventos/evento/change_form.html

@ -2,29 +2,31 @@
{% load i18n admin_urls %}
{% block object-tools-items %}
<li>
<a href="{% url 'evento-declaracao' object_id %}">
<i class="left material-icons" aria-hidden="true">picture_as_pdf</i>
{% trans "Declaração" %}
</a>
</li>
<li>
<a href="{% url opts|admin_urlname:'gantreport' object_id %}">
<i class="left material-icons" aria-hidden="true">insert_chart</i>
{% trans "Gráfico de Gant" %}
</a>
</li>
<li>
<a href="{% url opts|admin_urlname:'checklistreport' object_id %}">
<i class="left material-icons" aria-hidden="true">picture_as_pdf</i>
{% trans "Checklist" %}
</a>
</li>
<li>
<a href="{% url opts|admin_urlname:'comunicacaoreport' object_id %}">
<i class="left material-icons" aria-hidden="true">picture_as_pdf</i>
{% trans "Plano de comunicação" %}
</a>
</li>
{% if object_id %}
<li>
<a href="{% url 'evento-declaracao' object_id %}">
<i class="left material-icons" aria-hidden="true">picture_as_pdf</i>
{% trans "Declaração" %}
</a>
</li>
<li>
<a href="{% url opts|admin_urlname:'gantreport' object_id %}">
<i class="left material-icons" aria-hidden="true">insert_chart</i>
{% trans "Gráfico de Gant" %}
</a>
</li>
<li>
<a href="{% url opts|admin_urlname:'checklistreport' object_id %}">
<i class="left material-icons" aria-hidden="true">picture_as_pdf</i>
{% trans "Checklist" %}
</a>
</li>
<li>
<a href="{% url opts|admin_urlname:'comunicacaoreport' object_id %}">
<i class="left material-icons" aria-hidden="true">picture_as_pdf</i>
{% trans "Plano de comunicação" %}
</a>
</li>
{% endif %}
{{ block.super }}
{% endblock %}

Loading…
Cancel
Save