From a6d7030c17d59ee4bf7005c91201f71192ba3abf Mon Sep 17 00:00:00 2001 From: Gytha Ogg Date: Tue, 8 Oct 2024 15:22:31 +0200 Subject: [PATCH] feat(relations): new template to list relations Displays the relations in a tabbed view with ALL tab appearing in the beginning, followed by the other target groups. closes #489 --- .../list_relations_include_tabs.html | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 apis_core/relations/templates/relations/list_relations_include_tabs.html diff --git a/apis_core/relations/templates/relations/list_relations_include_tabs.html b/apis_core/relations/templates/relations/list_relations_include_tabs.html new file mode 100644 index 000000000..9afc63de2 --- /dev/null +++ b/apis_core/relations/templates/relations/list_relations_include_tabs.html @@ -0,0 +1,30 @@ +{% load relations %} +{% relations_from from_obj=object as relations %} +{% possible_relation_types_from object as possible_relations %} +{% get_relation_targets_from object as possible_targets %} +
+
+ +
+
+
+
{% include "relations/list_relations.html" %}
+ {% for target in possible_targets %} +
{% include "relations/list_relations.html" %}
+ {% endfor %} +
+
+