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