diff --git a/sigi/apps/casas/admin_urls.py b/sigi/apps/casas/admin_urls.py index 1d5e66f..455b634 100644 --- a/sigi/apps/casas/admin_urls.py +++ b/sigi/apps/casas/admin_urls.py @@ -3,4 +3,5 @@ from sigi.apps.casas import views urlpatterns = [ path("carteira/", views.painel_relacionamento, name="casas_carteira"), + path("gerentes/", views.GerentesListView.as_view(), name="casas_gerentes"), ] diff --git a/sigi/apps/casas/templates/admin/casas/gerentes_list.html b/sigi/apps/casas/templates/admin/casas/gerentes_list.html new file mode 100644 index 0000000..d16e5c3 --- /dev/null +++ b/sigi/apps/casas/templates/admin/casas/gerentes_list.html @@ -0,0 +1,93 @@ +{% extends 'public/base_site.html' %} +{% load i18n static %} + +{% block extrastyle %} + {{ block.super }} + +{% endblock extrastyle %} + +{% block content %} + {{ block.super }} + {% for gerente in object_list %} +
+ + {% blocktrans with total=gerente.tot_casas %} + Atende a {{ total }} casas legislativas. + + {% endblocktrans %} +
+ ++ + {% blocktrans with total=tot_casas %} + {{ total }} casas atendidas + {% endblocktrans %} + +
+{% trans "Unidade da Federação" %} | +{% trans "Total de Casas" %} | + {% for tipo in tipos_orgao %} +{{ tipo.nome }} | + {% endfor %} +
---|---|---|
+ + {{ value }} + + | + {% else %} ++ {% if forloop.counter > 2 and value > 0 %} + + {{ value }} + + {% else %} + {{ value|default:"-" }} + {% endif %} + | + {% endif %} + {% endfor %} +