From cdd5e5d9372a63f87827915448cae1cc692db08a Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Mon, 7 Oct 2024 14:36:24 +0100 Subject: Adds submit button to form and fix date-span in summary box of eng. detail --- engagements/templates/engagements/engagement_detail.html | 5 ++++- engagements/templates/engagements/engagement_form.html | 3 +-- .../templates/engagements/snippets/standard_form.html | 12 +++++++++--- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/engagements/templates/engagements/engagement_detail.html b/engagements/templates/engagements/engagement_detail.html index 3acabf6..fbf6735 100644 --- a/engagements/templates/engagements/engagement_detail.html +++ b/engagements/templates/engagements/engagement_detail.html @@ -81,7 +81,10 @@ - Tuesday - 10 May 2022 + {{ engagement.proposed_start_date|date:'j M Y' }} + {% if engagement.proposed_end_date != engagement.proposed_start_date %} + - {{ engagement.proposed_end_date|date:'j M Y' }} + {% endif %} diff --git a/engagements/templates/engagements/engagement_form.html b/engagements/templates/engagements/engagement_form.html index 0b5cd8b..4f04f5e 100644 --- a/engagements/templates/engagements/engagement_form.html +++ b/engagements/templates/engagements/engagement_form.html @@ -33,8 +33,7 @@ {% include "engagements/snippets/standard_form.html" with form=form %} - -{% endblock content %} + {% endblock content %} diff --git a/engagements/templates/engagements/snippets/standard_form.html b/engagements/templates/engagements/snippets/standard_form.html index fb419c2..0756242 100644 --- a/engagements/templates/engagements/snippets/standard_form.html +++ b/engagements/templates/engagements/snippets/standard_form.html @@ -2,8 +2,8 @@

Enter main details:

-
-
+
+ {% csrf_token %} {% for field in form %}
@@ -21,5 +21,11 @@ {% endif %}
{% endfor %} -
+
+ +
+
+
-- cgit v1.2.3