{{- define "content" -}} {{- $isAdmin := .Claims|isAdmin -}} {{- $isParticipant := .Claims|isParticipant -}} {{- $update := .Options.Get "update" -}}
{{- if $isAdmin -}} {{- if $update -}} {{template "breadcrumb" toSlice "Prove" (all "Response") (.Data|string) (.Data.ID|show "Response") "Aggiorna" "current"}} {{- else -}} {{template "breadcrumb" toSlice "Prove" (all "Response") "Aggiungi" "current"}} {{- end -}} {{- end -}} {{- if $isAdmin -}} {{template "add_update_header" dict "update" $update "addTitle" "Rispondi al questionario" "updateTitle" (printf "Aggiorna %s" (.Data|string))}} {{- end -}} {{- $form := "form_add_update" -}}
Explorer delle domande
{{range $id,$question := .Data.Questions -}}

{{$id|incr}}. {{$question.Text}}

{{range $answer := $question.Answers -}}
{{$checked := false}} {{if isResponseIn $answer.ID $.Data.AnswersIDs}} {{$checked = true}} {{end}}
{{end}}

{{end}}
Informazioni sulla prova
Gara
{{.Data.Contest}}
Partecipante
{{.Data.Participant}}
{{- if $isParticipant -}}
Tempo rimanente
{{if .Data.TimeLeft}}
minuti rimanenti
{{else}}
La gara รจ sempre attiva
{{end}} {{- end -}}
{{if $isAdmin}}{{end}}
{{ end -}}