{{ define "content" }}
{{template "breadcrumb" toSlice "Dipartimenti" (all "Department") (.Data|string) "current"}} {{template "show_header" dict "title" (.Data|string) "updatePath" (.Data.ID|update "Department") "deletePath" (.Data.ID|delete "Department")}}

Informazioni

{{if .Data.Coordinator}}

Il coordinatore di questo dipartimento รจ {{(.Data.Coordinator.ID|show "Teacher")|anchor (.Data.Coordinator|string)}}.

{{else}}

Il dipartimento non ha coordinatore. Clicca {{(.Data.ID|update "Department")|anchor "qui"}} per aggiungere un coordinatore.

{{end}}
{{$options := ` title: "Materie afferenti al dipartimento" model: "Subject" icon: "fa fa-book" `}} {{$noElements := "Nessuna materia associata al dipartimento."}} {{template "relation_list" dict "options" ($options|yaml) "data" .Data.Subjects "noElements" $noElements}}
{{$options := ` title: "Docenti" model: "Teacher" icon: "fa fa-users" `}} {{$noElements := "Nessun docente associato al dipartimento."}} {{template "relation_list" dict "options" ($options|yaml) "data" .Data.Teachers "noElements" $noElements}}
{{ end }}