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

Informazioni generali

{{if .Data.Class}}

Lo studente appartiene alla classe {{(.Data.Class.ID|show "Class")|anchor (.Data.Class|string)}}.

{{else}}

Questo studente non appartiene a nessuna classe. Clicca {{(.Data.ID|update "Student")|anchor "qui"}} per associare una classe allo studente.

{{end}}
{{$options := ` title: "Attività associate allo studente" model: "Activity" icon: "fa fa-business-time" `}} {{$noElements := "Nessuna attività associata allo studente."}} {{template "relation_list" dict "options" ($options|yaml) "data" .Data.Activities "noElements" $noElements "small" (toSlice "Teacher")}}
{{$options := ` title: "Operatori associati allo studente" model: "Operator" icon: "fa fa-user" `}} {{$noElements := "Nessun operatore associato allo studente."}} {{template "relation_list" dict "options" ($options|yaml) "data" .Data.Operators "noElements" $noElements}}
{{ end }}