From 4f41653c6685013b64c65f5057a89a87f5e93d3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ses=C3=B3stris=20Vieira?= Date: Thu, 17 Sep 2026 10:14:46 -0300 Subject: [PATCH] Garante que views/edits acessados a partir de um inline retorne para o objeto principal. Gertiq #237736 --- sigi/templates/admin/edit_inline/stacked.html | 68 +++++++++++ sigi/templates/admin/edit_inline/tabular.html | 109 ++++++++++++++++++ 2 files changed, 177 insertions(+) create mode 100644 sigi/templates/admin/edit_inline/stacked.html create mode 100644 sigi/templates/admin/edit_inline/tabular.html diff --git a/sigi/templates/admin/edit_inline/stacked.html b/sigi/templates/admin/edit_inline/stacked.html new file mode 100644 index 0000000..9312723 --- /dev/null +++ b/sigi/templates/admin/edit_inline/stacked.html @@ -0,0 +1,68 @@ +{% load i18n admin_urls djbs_extras %} +
+ {% if djbs.INLINESET_STYLE == djbsc.STYLE_CARD or djbs.INLINESET_STYLE == djbsc.STYLE_ACCORDION %} +
+ {% if djbs.INLINESET_STYLE == "accordion" %}{% endif %} +
+ {% endif %} + +
diff --git a/sigi/templates/admin/edit_inline/tabular.html b/sigi/templates/admin/edit_inline/tabular.html new file mode 100644 index 0000000..17ff10d --- /dev/null +++ b/sigi/templates/admin/edit_inline/tabular.html @@ -0,0 +1,109 @@ +{% load i18n admin_urls static admin_modify djbs_extras %} +
+ {% if djbs.INLINESET_STYLE == djbsc.STYLE_CARD or djbs.INLINESET_STYLE == djbsc.STYLE_ACCORDION %} +
+ {% if djbs.INLINESET_STYLE == "accordion" %}{% endif %} +
+ {% endif %} + +
\ No newline at end of file