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