From c723528c5463faf4afc05caac56f006601c1506f Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Sat, 6 Apr 2019 19:26:50 +0200 Subject: [PATCH] Use a nice checkbox for "add another supplies" --- manuels/templates/manuels/add_supplies.html | 39 ++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a/manuels/templates/manuels/add_supplies.html b/manuels/templates/manuels/add_supplies.html index f8e2c4e..c10df4b 100644 --- a/manuels/templates/manuels/add_supplies.html +++ b/manuels/templates/manuels/add_supplies.html @@ -4,5 +4,42 @@ {% load static %} {% block form %} - {% bootstrap_form form %} +
+
+ {% bootstrap_field form.teacher %} +
+
+
+
+ {% bootstrap_field form.levels %} +
+
+
+
+ {% bootstrap_field form.field %} +
+
+
+
+ {% bootstrap_field form.supplies %} +
+
+ + {% if form.add_another %} +
+
+
+ + + + {{ form.add_another.help_text|safe }} + +
+
+
+ {% endif %} {% endblock %}