From 4d35e498c555cc97ea76f4e798f5dc7fd8359989 Mon Sep 17 00:00:00 2001 From: Patrick Mayr Date: Thu, 30 Oct 2025 10:32:46 +0100 Subject: [PATCH] fix: wrong binding for checked box --- fet2020/templates/rental/create.html | 244 ++++++++++++++------------- 1 file changed, 123 insertions(+), 121 deletions(-) diff --git a/fet2020/templates/rental/create.html b/fet2020/templates/rental/create.html index 1c95a97a..c4425da0 100644 --- a/fet2020/templates/rental/create.html +++ b/fet2020/templates/rental/create.html @@ -1,121 +1,123 @@ -{% extends 'base.html' %} - -{% load static %} - -{% block title %}Verleih Anfrage{% endblock %} - -{% block content %} - -
-

Verleih Anfrage

- -
- {% csrf_token %} - {% include "baseform/non_field_errors.html" %} - -
-

Persönliche Daten

- Bitte gib deine persönlichen Daten ein. - -
-
- {% include "baseform/text.html" with field=form.firstname %} -
-
- {% include "baseform/text.html" with field=form.surname %} -
-
- {% include "baseform/text.html" with field=form.organization %} -
-
- {% include "baseform/text.html" with field=form.matriculation_number %} -
-
- {% include "baseform/email.html" with field=form.email %} -
-
- {% include "baseform/text.html" with field=form.phone %} -
-
-
- -
-

Verleihgegenstände

- Wähl deine gewünschten Verleihgegenstände aus. - -
- {% if form.rentalitems.errors %} -
-
{{ form.rentalitems.errors }}
-
- {% endif %} - -
- {% for elem in form.rentalitems %} -
- - - - {% for item in rentalitems_addinfo %} - {% if item.name == elem.choice_label and item.induction %} -

Einschulung erforderlich!

- {% endif %} - {% endfor %} -
- {% endfor %} -
-
-
-
- {% include "baseform/date.html" with field=form.date_start %} -
-
- {% include "baseform/date.html" with field=form.date_end %} -
-
- {% include "baseform/textarea.html" with field=form.reason %} -
-
-
- -
-

Zusätzliche Informationen

- Hier kannst du zusätzliche Informationen, Anliegen und Sonstiges angeben. - -
-
- {% include "baseform/textarea.html" with field=form.comment %} -
-
-
- -
-
-
- {% include "baseform/checkbox.html" with field=form.conformation %} -
- - - Verleihregeln - -
-
- -
- -
-
-
-{% endblock content %} +{% extends 'base.html' %} + +{% load static %} + +{% block title %}Verleih Anfrage{% endblock %} + +{% block content %} + +
+

Verleih Anfrage

+ +
+ {% csrf_token %} + {% include "baseform/non_field_errors.html" %} + +
+

Persönliche Daten

+ Bitte gib deine persönlichen Daten ein. + +
+
+ {% include "baseform/text.html" with field=form.firstname %} +
+
+ {% include "baseform/text.html" with field=form.surname %} +
+
+ {% include "baseform/text.html" with field=form.organization %} +
+
+ {% include "baseform/text.html" with field=form.matriculation_number %} +
+
+ {% include "baseform/email.html" with field=form.email %} +
+
+ {% include "baseform/text.html" with field=form.phone %} +
+
+
+ +
+

Verleihgegenstände

+ Wähl deine gewünschten Verleihgegenstände aus. + +
+ {% if form.rentalitems.errors %} +
+
{{ form.rentalitems.errors }}
+
+ {% endif %} + +
+ {% for elem in form.rentalitems %} +
+ + + {% for item in rentalitems_addinfo %} + {% if item.name == elem.choice_label and item.induction %} +

Einschulung erforderlich!

+ {% endif %} + {% endfor %} +
+ {% endfor %} +
+
+
+
+ {% include "baseform/date.html" with field=form.date_start %} +
+
+ {% include "baseform/date.html" with field=form.date_end %} +
+
+ {% include "baseform/textarea.html" with field=form.reason %} +
+
+
+ +
+

Zusätzliche Informationen

+ Hier kannst du zusätzliche Informationen, Anliegen und Sonstiges angeben. + +
+
+ {% include "baseform/textarea.html" with field=form.comment %} +
+
+
+ +
+
+
+ {% include "baseform/checkbox.html" with field=form.conformation %} +
+ + + Verleihregeln + +
+
+ +
+ +
+
+
+{% endblock content %}