diff --git a/gruppenbildungsspiel.py b/gruppenbildungsspiel.py index 013994f..9d00308 100644 --- a/gruppenbildungsspiel.py +++ b/gruppenbildungsspiel.py @@ -29,9 +29,6 @@ class QuestionForm(Form): check = BooleanField('Bitte nicht ankreuzen') email = EmailField('Email-Adresse') -class User(): - name = '' - @app.route('/') def index(): return render_template('index.html', title='Test', text='Hallo, Fooboar') @@ -55,10 +52,10 @@ def questions(): return redirect(url_for('result')) return render_template('questions.html', form=form) -@app.route('/form') -def form(): - id = generate_id() - return render_template('form.html', title='Test', text='Hallo, Fooboar', your_id=id) +# @app.route('/form') +# def form(): + # id = generate_id() + # return render_template('form.html', title='Test', text='Hallo, Fooboar', your_id=id) @app.route('/result') def result(): diff --git a/templates/base.html b/templates/base.html index c86f434..3a9cd4a 100644 --- a/templates/base.html +++ b/templates/base.html @@ -14,7 +14,7 @@ diff --git a/templates/index.html b/templates/index.html index 5beacb7..880d239 100644 --- a/templates/index.html +++ b/templates/index.html @@ -6,7 +6,7 @@ Kein Alkohol mehr.
- +
diff --git a/templates/questions.html b/templates/questions.html index 634a6f5..0a9721d 100644 --- a/templates/questions.html +++ b/templates/questions.html @@ -4,13 +4,21 @@
{{ render_field(form.computer) }} +
{{ render_field(form.status) }} +
{{ render_field(form.vegetable) }} +
{{ render_field(form.spirit_animal) }} +
{{ render_field(form.operating_system) }} +
{{ form.check }} {{ form.check.label }} +
+
{{ render_field(form.email) }}
+

{% endblock %}