diff --git a/gruppenbildungsspiel.py b/gruppenbildungsspiel.py index 9d00308..eb74228 100644 --- a/gruppenbildungsspiel.py +++ b/gruppenbildungsspiel.py @@ -16,7 +16,7 @@ def input_check(form, field): raise validators.ValidationError('Bitte wähle eine Option aus') class QuestionForm(Form): - computers = [('default', 'Bitte auswählen'), ('hal', 'HAL 9000 (2001: Odyssee im Weltraum)'), ('deepthought', 'Deep Thought (Per Anhalter durch die Galaxie)'), ('neuromancer', 'Neuromancer (Neuromancer)'), ('samantha', 'Samatha (Her)'), ('tars', 'TARS und CASE (Interstellar)')] + computers = [('default', 'Bitte auswählen'), ('hal', 'HAL 9000 (2001: Odyssee im Weltraum)'), ('deepthought', 'Deep Thought (Hitchhiker\'s Guide)'), ('neuromancer', 'Neuromancer (Neuromancer)'), ('samantha', 'Samatha (Her)'), ('tars', 'TARS und CASE (Interstellar)')] computer = SelectField(u'Fiktionaler Lieblingscomputer', choices=computers, validators=[validators.InputRequired(), input_check]) statuses = [('default', 'Bitte auswählen'), ('200', '200 OK'), ('300', '300 Multiple Choices'), ('301', '301 Moved Permanently'), ('402', '402 Payment Required'), ('404', '404 (Sleep) Not Found'), ('408', '408 Request Timeout'), ('418', '418 I am a teapot'), ('450', '450 Blocked by Windows Parental Controls'), ('451', '451 Unavailable For Legal Reasons'), ('502', '502 Bad Gateway (Internetkurort)')] status = SelectField(u'Welcher HTTP-Statuscode trifft am häufigsten auf dich zu?', choices=statuses, validators=[validators.InputRequired(), input_check]) diff --git a/templates/_formhelpers.html b/templates/_formhelpers.html index 0b6bfda..040f2ab 100644 --- a/templates/_formhelpers.html +++ b/templates/_formhelpers.html @@ -1,6 +1,6 @@ {% macro render_field(field) %} -
{{ field.label }}
+
{{ field(**kwargs)|safe }}
{% if field.errors %}