From ff675bdc4d8d7a698ee8496b8d43a1873ca4756d Mon Sep 17 00:00:00 2001 From: Saranya Balasubramanian Date: Tue, 15 Oct 2024 15:14:23 +0200 Subject: [PATCH] feat(sample_project): tabbed relations for person Person - view and edit pages list relations in a tabbed format by overriding relations-include block in col-one --- sample_project/templates/sample_project/person_detail.html | 5 +++++ sample_project/templates/sample_project/person_form.html | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 sample_project/templates/sample_project/person_detail.html create mode 100644 sample_project/templates/sample_project/person_form.html diff --git a/sample_project/templates/sample_project/person_detail.html b/sample_project/templates/sample_project/person_detail.html new file mode 100644 index 000000000..5c47d2888 --- /dev/null +++ b/sample_project/templates/sample_project/person_detail.html @@ -0,0 +1,5 @@ +{% extends "apis_core/apis_entities/abstractentity_detail.html" %} + +{% block relations-include %} + {% include "relations/list_relations_include_tabs.html" %} +{% endblock relations-include %} diff --git a/sample_project/templates/sample_project/person_form.html b/sample_project/templates/sample_project/person_form.html new file mode 100644 index 000000000..84569dd6c --- /dev/null +++ b/sample_project/templates/sample_project/person_form.html @@ -0,0 +1,5 @@ +{% extends "apis_core/apis_entities/abstractentity_form.html" %} + +{% block relations-include %} + {% include "relations/list_relations_include_tabs.html" with edit=True %} +{% endblock relations-include %}