From 7fa97be1538e3278fc46d5279907a0e062a80e9a Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Thu, 12 Sep 2024 12:07:23 +0100 Subject: Adds the snippet file missing from the last commit --- .../engagements/snippets/standard_form.html | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 engagements/templates/engagements/snippets/standard_form.html (limited to 'engagements/templates') diff --git a/engagements/templates/engagements/snippets/standard_form.html b/engagements/templates/engagements/snippets/standard_form.html new file mode 100644 index 0000000..fb419c2 --- /dev/null +++ b/engagements/templates/engagements/snippets/standard_form.html @@ -0,0 +1,25 @@ +{% load widget_tweaks %} + +
+

Enter main details:

+
+
+ {% csrf_token %} + {% for field in form %} +
+ {{ field.label_tag }} {% if field.field.required %}*{% endif %} +
+ {% 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 %} +

{{ error }}

+ {% endfor %} +
+ {% if field.help_text %} +
+

{{ field.help_text }}

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