generated from spseol/flask-start-onefile
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Felix Vybíhal
committed
Nov 3, 2022
1 parent
34ef0bf
commit 1b09f90
Showing
8 changed files
with
81 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,4 +27,3 @@ <h1>Flask <a href="{{ url_for('index') }}">pokus</a></h1> | |
|
||
|
||
{% endblock obsah %} | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{% extends 'base.html' %} | ||
|
||
|
||
{% block obsah %} | ||
|
||
<h1>Malina a BMI</h1> | ||
|
||
<h2>formulář</h2> | ||
<form action="" method="GET"> | ||
<p>Hmotnost:<br> | ||
<input type="text" name="hmotnost" placeholder="hmotnost v kg" | ||
value="{{ request.args.get('hmotnost') or '' }}">kg | ||
</p> | ||
<p>Výška: <br> | ||
<input type="text" name="vyska" placeholder="výška v cm" | ||
value="{{ request.args.get('vyska') or '' }}">cm | ||
</p> | ||
<p><input type="submit" value="Vypočítej mi to!"></p> | ||
</form> | ||
{% if bmi != none %} | ||
<p>BMI={{bmi}}</p> | ||
|
||
{% if bmi < 18.5%} | ||
<p>0 až 18.5 podváha</p> | ||
{% elif bmi < 25%} | ||
<p>18.5 až 25 normalni vaha </p> | ||
{% elif bmi < 30%} | ||
<p>25 až 30 nadvaha </p> | ||
{% elif bmi < 35%} | ||
<p>30 až 35 mirna obezita </p> | ||
{% elif bmi < 40%} | ||
<p>35 až 40 obezita </p> | ||
{% elif bmi > 40%} | ||
<p> více než 40 extrem obezita </p> | ||
{% endif %} | ||
|
||
|
||
{% else %} | ||
<p>je treba zadat dve nenulova cisla!</p> | ||
{% endif %} | ||
|
||
|
||
<p><img src="{{ url_for('static', filename='img/maliny.jpg') }}" alt=""></p> | ||
|
||
{% for i in range(7) %} | ||
<p>Maliny jsou nejlepší!</p> | ||
{% endfor %} | ||
|
||
|
||
{% endblock obsah %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters