File size: 712 Bytes
9a82c5c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Quiz</title>
<link rel="stylesheet" href="{{ url_for('static', filename='styles.css') }}">
</head>
<body>
<h1>Question {{ session['current_question'] + 1 }}</h1>
<p>{{ question['question'] }}</p>
<form action="/quiz" method="post">
{% for option in question['options'] %}
<input type="radio" id="{{ loop.index }}" name="answer" value="{{ loop.index }}" required>
<label for="{{ loop.index }}">{{ option }}</label><br>
{% endfor %}
<button type="submit">Next</button>
</form>
</body>
</html>
|