From fda32defdba4a9ed61a7fa0b4df05600338801c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ses=C3=B3stris=20Vieira?= Date: Fri, 15 Jul 2022 23:36:52 -0300 Subject: [PATCH] Generalizar change_form com tabs --- .../admin/casas/orgao/change_form.html | 76 +------------------ sigi/templates/admin/tabs_change_form.html | 75 ++++++++++++++++++ 2 files changed, 76 insertions(+), 75 deletions(-) create mode 100644 sigi/templates/admin/tabs_change_form.html diff --git a/sigi/apps/casas/templates/admin/casas/orgao/change_form.html b/sigi/apps/casas/templates/admin/casas/orgao/change_form.html index 37ed774..1809942 100644 --- a/sigi/apps/casas/templates/admin/casas/orgao/change_form.html +++ b/sigi/apps/casas/templates/admin/casas/orgao/change_form.html @@ -1,75 +1 @@ -{% extends "admin/change_form.html" %} -{% load i18n %} - -{% block extrastyle %} - {{ block.super }} -{% endblock %} - -{% block form_top %} -
-
- -
-
-{% endblock %} - -{% block field_sets %} -{% for fieldset in adminform %} -
- {% include "admin/includes/fieldset.html" %} -
-{% endfor %} -{% endblock %} - -{% block inline_field_sets %} -{% for inline_admin_formset in inline_admin_formsets %} -
- {% include inline_admin_formset.opts.template %} -
-{% endfor %} -{% endblock %} - - -{% block footer %} - {{ block.super }} - - -{% endblock %} +{% extends "admin/tabs_change_form.html" %} diff --git a/sigi/templates/admin/tabs_change_form.html b/sigi/templates/admin/tabs_change_form.html new file mode 100644 index 0000000..c7c4d21 --- /dev/null +++ b/sigi/templates/admin/tabs_change_form.html @@ -0,0 +1,75 @@ +{% extends "admin/change_form.html" %} +{% load i18n %} + +{% block extrastyle %} + {{ block.super }} + + {% endblock %} + +{% block form_top %} +
+
+ +
+
+{% endblock %} + +{% block field_sets %} +{% for fieldset in adminform %} +
+ {% include "admin/includes/fieldset.html" %} +
+{% endfor %} +{% endblock %} + +{% block inline_field_sets %} +{% for inline_admin_formset in inline_admin_formsets %} +
+ {% include inline_admin_formset.opts.template %} +
+{% endfor %} +{% endblock %} + + +{% block footer %} + {{ block.super }} + +{% endblock %}