add some functionality
This commit is contained in:
@@ -3,9 +3,9 @@
|
|||||||
{% block content %}
|
{% block content %}
|
||||||
<form method="POST">
|
<form method="POST">
|
||||||
<br />
|
<br />
|
||||||
<div align="center" class="d-grid gap-2 col-10 mx-auto"">
|
<div class="btn-group d-flex" role="group" aria-label="order_buttons">
|
||||||
<button type="submit" class="btn btn-primary btn-block py-5">Es Grosses!</button>
|
<button type="submit" name="submit_button" value="option1" class="btn btn-primary w-100 py-5">Left</button>
|
||||||
<button type="submit" class="btn btn-secondary btn-block py-5">Es Chliises!</button>
|
<button type="submit" name="submit_button" value="option2" class="btn btn-secondary w-100 py-5">Right</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@@ -6,5 +6,9 @@ views = Blueprint('views', __name__)
|
|||||||
|
|
||||||
@views.route('/', methods=['GET', 'POST'])
|
@views.route('/', methods=['GET', 'POST'])
|
||||||
def beer_tap():
|
def beer_tap():
|
||||||
print("main")
|
if request.method == 'POST':
|
||||||
|
if request.form['submit_button'] == 'option1':
|
||||||
|
print("Es Grosses uselah!")
|
||||||
|
if request.form['submit_button'] == 'option2':
|
||||||
|
print("Es Chliises uselah!")
|
||||||
return render_template('beertap.html')
|
return render_template('beertap.html')
|
||||||
|
|||||||
Reference in New Issue
Block a user