Add content to result page
This commit is contained in:
parent
af03bddca1
commit
6573729825
@ -13,7 +13,7 @@ def form():
|
|||||||
|
|
||||||
@app.route('/result')
|
@app.route('/result')
|
||||||
def result():
|
def result():
|
||||||
return render_template('result.html', title='Test', text='Hallo, Fooboar')
|
return render_template('result.html', hausname='Knuth', haustext='Mitglieder dieses Hauses mögen LaTeX-Anzüge und Eisbären.', id=123)
|
||||||
|
|
||||||
@app.route('/admin')
|
@app.route('/admin')
|
||||||
def admin():
|
def admin():
|
||||||
@ -25,5 +25,5 @@ def answers():
|
|||||||
|
|
||||||
@app.route('/solution')
|
@app.route('/solution')
|
||||||
def solution():
|
def solution():
|
||||||
return render_template('solution.html', title='Test', text='Hallo, Lösung!')
|
return render_template('solution.html', title='Test', text='Hallo, Lösung')
|
||||||
|
|
||||||
|
|||||||
@ -1 +1,9 @@
|
|||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
|
{% block content %}
|
||||||
|
<h1>Dein Ergebnis</h1>
|
||||||
|
<h2>Herzlichen Glückwunsch, du bist in Haus</h2>
|
||||||
|
{{ hausname }}
|
||||||
|
<p>{{ haustext }}</p>
|
||||||
|
<p>Deine Id, mit der du deine Antworten unter dem Reiter "Meine Antworten" später wieder abrufen kannst, lautet:
|
||||||
|
{{ id }}</p>
|
||||||
|
{% endblock %}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user