add some more mockups and functionality

This commit is contained in:
2022-07-16 17:40:31 +02:00
parent 25fc44b8b1
commit 34897225ba
6 changed files with 47 additions and 17 deletions

View File

@@ -4,11 +4,22 @@ from flask import Blueprint, render_template, request, flash, jsonify
views = Blueprint('views', __name__)
@views.route('/', methods=['GET', 'POST'])
def beer_tap():
if request.method == 'POST':
if request.form['submit_button'] == 'option1':
print("Es Grosses uselah!")
if request.form['submit_button'] == 'option2':
print("Es Chliises uselah!")
@views.route('/', methods=['GET'])
def render():
return render_template('beertap.html')
@views.route('/', methods=['POST'])
def choice():
if request.form['submit_button'] == 'option_1':
print("Es Grosses uselah!")
if request.form['submit_button'] == 'option_2':
print("Es Chliises uselah!")
return render_template('beertap.html')
@views.route('/about', methods=['GET'])
def about():
return render_template('about.html')
@views.route('/statistics', methods=['GET'])
def statistics():
return render_template('statistics.html')