basic app

This commit is contained in:
Radek
2024-12-06 14:26:16 +00:00
parent 8af989fc0f
commit 8f80ecfc49
2 changed files with 75 additions and 0 deletions

34
templates/index.html Normal file
View File

@@ -0,0 +1,34 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Lottery Number Generator</title>
</head>
<body>
<h1>Lottery Number Generator</h1>
<form method="POST">
<label for="game_type">Select Game:</label>
<select name="game_type" id="game_type" required>
<option value="euromillions">EuroMillions</option>
<option value="euromillions_plus">EuroMillions Plus</option>
<option value="lotto">Lotto</option>
<option value="lotto_plus">Lotto Plus</option>
<option value="eurodreams">EuroDreams</option>
</select>
<br><br>
<button type="submit">Generate Numbers</button>
</form>
{% if result %}
<h2>Generated Numbers:</h2>
<p>Numbers: {{ result.numbers }}</p>
{% if result.lucky_stars %}
<p>Lucky Stars: {{ result.lucky_stars }}</p>
{% endif %}
{% if result.plus %}
<p>Plus Option: Yes</p>
{% endif %}
{% endif %}
</body>
</html>