Add menu buttons and create answers page

This commit is contained in:
Sauer 2019-04-10 20:52:58 +02:00
parent 8503f33bc8
commit 1d61a5ff18
3 changed files with 12 additions and 0 deletions

View File

@ -16,3 +16,7 @@ def result():
@app.route('/admin')
def admin():
return render_template('admin.html', title='Test', text='Hallo, Admin Fooboar')
@app.route('/answers')
def answers():
return render_template('answers.html', title='Test', text='Hallo, Admin Fooboar')

1
templates/answers.html Normal file
View File

@ -0,0 +1 @@
{% extends "base.html" %}

View File

@ -6,6 +6,13 @@
<link rel="stylesheet" href="{{ url_for('static', filename='main.css') }}"
</head>
<body>
<nav>
<ul>
<li><a href="{{ url_for('index') }}">Home</a></li>
<li><a href="{{ url_for('form') }}">Questionnaire</a></li>
<li><a href="{{ url_for('answers') }}">My Answers</a></li>
</ul>
</nav>
<p>{{ text }}</p>
</body>
</html>