From f052035c8b582cc5b9536b635cd8dc965c2b589d Mon Sep 17 00:00:00 2001 From: Birger Schacht Date: Tue, 12 Sep 2023 10:33:47 +0200 Subject: [PATCH] feat(apis_entities): enclose the relations listing in a relations block This makes it easier to override the relations forms. The same approach is also used in the `detail_generic.html` template. --- .../templates/apis_entities/edit_generic.html | 39 ++++++++++--------- 1 file changed, 21 insertions(+), 18 deletions(-) diff --git a/apis_core/apis_entities/templates/apis_entities/edit_generic.html b/apis_core/apis_entities/templates/apis_entities/edit_generic.html index 3304d8559..93326e7b4 100644 --- a/apis_core/apis_entities/templates/apis_entities/edit_generic.html +++ b/apis_core/apis_entities/templates/apis_entities/edit_generic.html @@ -197,25 +197,28 @@


{% endblock additional_accordion %} - {% for obj in right_card %} -
- -
-
{% render_table obj.1 %}
+ {% block relations %} + {% for obj in right_card %} +
+ +
+
{% render_table obj.1 %}
+
-
- {% endfor %} + {% endfor %} + {% endblock relations %} +