From a44c014f4bcff8bd78086193f259eaebddde7309 Mon Sep 17 00:00:00 2001 From: mipel Date: Wed, 29 Sep 2021 15:48:25 +0200 Subject: [PATCH] #7 New Form * adds intervention comment to detail view --- .../intervention/detail/includes/comment.html | 21 +++++++++++++++++++ .../templates/intervention/detail/view.html | 7 ++++++- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 intervention/templates/intervention/detail/includes/comment.html diff --git a/intervention/templates/intervention/detail/includes/comment.html b/intervention/templates/intervention/detail/includes/comment.html new file mode 100644 index 00000000..9050f4ea --- /dev/null +++ b/intervention/templates/intervention/detail/includes/comment.html @@ -0,0 +1,21 @@ +{% load i18n fontawesome_5 %} + +{% if intervention.comment %} +
+
+
+
+
+ {% fa5_icon 'info-circle' %} + {% trans 'Comment' %} +
+
+
+
+
+
+ {{intervention.comment}} +
+
+
+{% endif %} \ No newline at end of file diff --git a/intervention/templates/intervention/detail/view.html b/intervention/templates/intervention/detail/view.html index c5f169c1..525182d5 100644 --- a/intervention/templates/intervention/detail/view.html +++ b/intervention/templates/intervention/detail/view.html @@ -123,7 +123,12 @@
- {% include 'map/geom_form.html' %} +
+ {% include 'map/geom_form.html' %} +
+
+ {% include 'intervention/detail/includes/comment.html' %} +