groups_show.html.tpl 686 B

12345678910111213141516171819202122232425
  1. {{ define "content" }}
  2. <div class="container">
  3. {{template "breadcrumb" toSlice "Gruppi" (all "Group") (.Data|string) "current"}}
  4. {{template "show_header" dict "title" (.Data|string) "updatePath" (.Data.ID|update "Group") "deletePath" (.Data.ID|delete "Group")}}
  5. <div class="row">
  6. <div class="col-md-12">
  7. {{$options := `
  8. title: "Docenti appartenenti al gruppo"
  9. model: "Teacher"
  10. icon: "fa fa-user"
  11. `}}
  12. {{$noElements := "Al gruppo non è associato nessun docente."}}
  13. {{template "relation_list" dict "options" ($options|yaml) "data" .Data.Teachers "noElements" $noElements}}
  14. </div>
  15. </div>
  16. </div>
  17. {{ end }}