|
<!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 {{ question_number }} of {{ total_questions }}</h1> |
|
<p>{{ question.question }}</p> |
|
<form action="{{ url_for('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 %} |
|
<br> |
|
<button type="submit">Next</button> |
|
</form> |
|
</body> |
|
</html> |