Browse Source

adiciona botao para exportar para pdf

stable/1.0
Felipe Vieira 13 years ago
parent
commit
05a8c5046c
  1. 2
      sigi/apps/diagnosticos/models.py
  2. 10
      sigi/templates/admin/diagnosticos/diagnostico/change_form.html

2
sigi/apps/diagnosticos/models.py

@ -109,7 +109,7 @@ class Diagnostico(BaseEntity):
'casa_legislativa': self.casa_legislativa,
'data_diagnostico': self.data_questionario,
'host': host,
'url_diagnostico': self.get_absolute_url,
'url_diagnostico': self.get_absolute_url(),
'status': "Alterado",
})

10
sigi/templates/admin/diagnosticos/diagnostico/change_form.html

@ -1,6 +1,16 @@
{% extends 'admin/change_form.html' %}
{% load i18n reporting_tags %}
{% block extrastyle %}
{{ block.super }}
<link rel="stylesheet" type="text/css" href="{{MEDIA_URL}}css/admin/diagnosticos/diagnostico/change_form.css">
{% endblock %}
{% block object-tools %}
{% if change %}{% if not is_popup %}
<ul class="object-tools">
<li><a href="history/" class="historylink">{% trans "History" %}</a></li>
<li><a href="{{adminform.form.instance.get_absolute_url }}" class="viewsitelink">Ver em PDF</a></li>
</ul>
{% endif %}{% endif %}
{% endblock %}

Loading…
Cancel
Save