{{ define "content" }}
{{$options := ` title: "Classi" buttonTitle: "Crea nuova classe" `}} {{template "read_all_header" dict "options" ($options | yaml) "lengthData" (len .Data) "modelPath" (create "class")}} {{template "search_input"}} {{if not .}} {{template "display_no_elements"}} {{else}}
{{range $class := .Data}} {{$class.Name}}
{{$options := `noElements: "no docenti"`}} {{template "small" dict "options" ($options | yaml) "data" $class.Teachers}}
{{end}} {{end}}
{{ end }}