From 15b2dc965bfe2271d73476fcf9ff636c60113908 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Tue, 10 Sep 2024 15:57:53 +0100 Subject: Adds starter HTML form for Engagement Strategy create form --- .../engagements/engagement_strategy_form.html | 56 ++++++++++++++++++---- 1 file changed, 47 insertions(+), 9 deletions(-) diff --git a/engagements/templates/engagements/engagement_strategy_form.html b/engagements/templates/engagements/engagement_strategy_form.html index 6b2f26c..f0eb414 100644 --- a/engagements/templates/engagements/engagement_strategy_form.html +++ b/engagements/templates/engagements/engagement_strategy_form.html @@ -1,17 +1,55 @@ {% extends "core/base.html" %}} +{% load widget_tweaks %} -{% block content %} +{% block title %}Create new Engagement Strategy{% endblock title %} -

Create Engagement Strategy

+{% block content %} -
-
-
+
+
+ + + + + +

Create new Engagement Strategy

+ {% csrf_token %} - {{ form.as_p }} - + {% for field in form %} +
+
+ +
+
+ {% render_field field class+="block w-full rounded-md border-0 p-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6" %} + {% for error in field.errors %} + {{ field }} + {% endfor %} +
+ {% if field.help_text %} +
+ + + +

{{ field.help_text }}

+
+ {% endif %} +
+ {% endfor %} +
+ +
+ -
+
-{% endblock content %} + {% endblock content %} -- cgit v1.2.3