Browse Source

Preparando o terreno para os relatórios.

0.2
Guilherme Gondim 15 years ago
parent
commit
808b742be1
  1. 1
      sigi/apps/convenios/admin.py
  2. 11
      sigi/apps/convenios/reports.py
  3. 15
      sigi/apps/convenios/templates/convenios/change_list.html

1
sigi/apps/convenios/admin.py

@ -22,6 +22,7 @@ class AnexoAdmin(admin.ModelAdmin):
'convenio__casa_legislativa__nome')
class ConvenioAdmin(admin.ModelAdmin):
change_list_template = 'convenios/change_list.html'
fieldsets = (
(None,
{'fields': ('casa_legislativa', 'num_processo_sf')}

11
sigi/apps/convenios/reports.py

@ -0,0 +1,11 @@
class CasasAderidasReport(object):
pass
class CasasNaoAderidasReport(object):
pass
class CasasComEquipamentosReport(object):
pass
class SemEquipamentosReport(object):
pass

15
sigi/apps/convenios/templates/convenios/change_list.html

@ -0,0 +1,15 @@
{% extends "admin/change_list.html" %}
{% load i18n reporting_tags %}
{% block object-tools %}
{% if has_add_permission %}
<ul class="object-tools">
<li><a href="reports/{{ query_str }}">Relatórios</a></li>
<li>
<a href="add/{% if is_popup %}?_popup=1{% endif %}" class="addlink">
{% blocktrans with cl.opts.verbose_name as name %}Add {{ name }}{% endblocktrans %}
</a>
</li>
</ul>
{% endif %}
{% endblock %}
Loading…
Cancel
Save