{{ define "content" }}
{{$options := ` title: "Attività" buttonTitle: "Crea nuova attività" `}} {{template "read_all_header" dict "options" ($options | yaml) "lengthData" (len .Data) "modelPath" (create "activity")}} {{template "search_input"}} {{if not .}} {{template "display_no_elements"}} {{else}}
{{range $activity := .Data}} {{$activity|string}}
{{$options := `noElements: "no docente"`}} {{template "small" dict "options" ($options | yaml) "data" $activity.Teacher}}
{{end}} {{end}}
{{ end }}