Fausto Busuito
Application changes
9a82c5c
raw
history blame
712 Bytes
<!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>