From 16f543bc59b0189b975eb5e6068b1555387838f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20N=C3=BC=C3=9Flein?= <andreas@nuessle.in> Date: Wed, 27 Sep 2023 14:39:50 +0100 Subject: [PATCH] add Editors to summary PDF --- apps/summary/renderers/summary.py | 7 +++++++ apps/summary/templates/summary/block/references.html | 8 ++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/apps/summary/renderers/summary.py b/apps/summary/renderers/summary.py index c12e0cece..9c4cd286a 100644 --- a/apps/summary/renderers/summary.py +++ b/apps/summary/renderers/summary.py @@ -308,6 +308,13 @@ class GlobalValuesMixin: role_name="QUESTIONNAIRE_COMPILER" ), }, + "editor": { + "title": _("Editors"), + "css_class": "bullets", + "items": self.get_reference_person( + role_name="QUESTIONNAIRE_EDITOR" + ), + }, "reviewer": { "title": _("Reviewer"), "css_class": "bullets", diff --git a/apps/summary/templates/summary/block/references.html b/apps/summary/templates/summary/block/references.html index cb5eafd59..26fab3dc6 100644 --- a/apps/summary/templates/summary/block/references.html +++ b/apps/summary/templates/summary/block/references.html @@ -2,11 +2,15 @@ {% include 'summary/partial/title_bar.html' with title=title %} <div class="flex gap-4 mb-2"> - <div class="w-1/2"> + <div class="w-1/3"> <h5>{{ content.compiler.title }}</h5> {% include 'summary/partial/unordered_list.html' with list_items=content.compiler.items class="compact" %} </div> - <div class="w-1/2"> + <div class="w-1/3"> + <h5>{{ content.editor.title }}</h5> + {% include 'summary/partial/unordered_list.html' with list_items=content.editor.items class="compact" %} + </div> + <div class="w-1/3"> <h5>{{ content.reviewer.title }}</h5> {% include 'summary/partial/unordered_list.html' with list_items=content.reviewer.items class="compact" %} </div> -- GitLab