probo/server/templates/exam.tpl

29 lines
1.9 KiB
Smarty
Raw Normal View History

2023-12-11 09:32:50 +01:00
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
2023-12-17 18:56:20 +01:00
<!-- <link rel="stylesheet" href="https://unpkg.com/mvp.css"> -->
2023-12-11 09:32:50 +01:00
<link rel="stylesheet" type="text/css" href="/static/css/neat.css">
2023-12-12 09:21:55 +01:00
<title>Exam</title>
2023-12-11 09:32:50 +01:00
</head>
<body>
2023-12-12 09:21:55 +01:00
<h1>Exam</h1>
2023-12-11 09:32:50 +01:00
<h2>{{.Participant.Firstname}} {{.Participant.Lastname}}</h2>
<form action="/{{.SessionID}}/{{.Participant.Token}}" method="post">
{{range $index, $quiz := .Quizzes}}
<h3>Question {{$index}}:</h3>
<p>{{$quiz.Question.Text}}</p>
{{range $answer := $quiz.Answers}}
<input type="radio"
2023-12-17 18:56:20 +01:00
id="{{$quiz.Question.ID}}_{{$answer.ID}}" name="{{$quiz.Question.ID}}"
value="{{$answer.ID}}">
2023-12-11 09:32:50 +01:00
<label
for="{{$answer.ID}}">{{$answer.Text}}</label><br>
{{end}}
<br>
{{end}}
<button type="submit">Invia</button>
</form>
</body>
</html>