{{ define "content" }}
{{$options := ` title: "Risposte" buttonTitle: "Crea nuova risposta" `}} {{template "read_all_header" dict "options" ($options | yaml) "lengthData" (len .Data) "modelPath" (create "Answer")}} {{template "search_input"}} {{if not .}} {{template "display_no_elements"}} {{else}}
{{range $element := .Data}} {{$element|string}}
{{$options := `noElements: "nessuna domanda"`}} {{template "small" dict "options" ($options | yaml) "data" $element.Question}} {{if $element.Correct}} {{template "small" dict "options" ($options | yaml) "data" "corretta"}} {{end}}
{{end}} {{end}}
{{ end }}