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