From 16bf3718acadda4363599c824ed100411976332a Mon Sep 17 00:00:00 2001 From: Marcio Mazza Date: Wed, 8 Oct 2014 16:43:08 -0300 Subject: [PATCH] Redesign change_form of local parliament --- .../casas/templates/casas/change_form.html | 28 +++++++++++-------- sigi/apps/metas/templates/metas/mapa.html | 2 +- templates/base_change_form.html | 20 +++++++++++++ 3 files changed, 37 insertions(+), 13 deletions(-) create mode 100644 templates/base_change_form.html diff --git a/sigi/apps/casas/templates/casas/change_form.html b/sigi/apps/casas/templates/casas/change_form.html index b59cb99..a3a43fb 100644 --- a/sigi/apps/casas/templates/casas/change_form.html +++ b/sigi/apps/casas/templates/casas/change_form.html @@ -1,14 +1,18 @@ -{% extends "admin/change_form.html" %} -{% load i18n reporting_tags %} +{% extends "base_change_form.html" %} +{% load i18n %} -{% block object-tools %} -{% if change %}{% if not is_popup %} - -{% endif %}{% endif %} +{% block object-tools-items %} +
  • + + Relatório +
  • +
  • + + Etiqueta +
  • +
  • + + Etiqueta sem presidente +
  • + {{ block.super }} {% endblock %} diff --git a/sigi/apps/metas/templates/metas/mapa.html b/sigi/apps/metas/templates/metas/mapa.html index e77b56d..e1222b4 100644 --- a/sigi/apps/metas/templates/metas/mapa.html +++ b/sigi/apps/metas/templates/metas/mapa.html @@ -44,7 +44,7 @@ {% block object-tools-items %}
  • - + Relatório resumo
  • diff --git a/templates/base_change_form.html b/templates/base_change_form.html new file mode 100644 index 0000000..36548e4 --- /dev/null +++ b/templates/base_change_form.html @@ -0,0 +1,20 @@ +{% extends "admin/change_form.html" %} +{% load i18n admin_urls %} + +{% block object-tools %} +{% if change %}{% if not is_popup %} + +{% endif %}{% endif %} +{% endblock %} +