Add menu buttons and create answers page
This commit is contained in:
parent
8503f33bc8
commit
1d61a5ff18
@ -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
1
templates/answers.html
Normal file
@ -0,0 +1 @@
|
||||
{% extends "base.html" %}
|
||||
@ -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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user