34 lines
828 B
Smarty
34 lines
828 B
Smarty
|
{{ define "content" }}
|
||
|
|
||
|
|
||
|
<div class="container">
|
||
|
{{$options := `
|
||
|
title: "Participants"
|
||
|
buttonTitle: "Crea nuovo Participant"
|
||
|
`}}
|
||
|
|
||
|
{{template "read_all_header" dict "options" ($options | yaml) "lengthData" (len .Data) "modelPath" (create "Participant")}}
|
||
|
{{template "search_input"}}
|
||
|
|
||
|
{{if not .}}
|
||
|
{{template "display_no_elements"}}
|
||
|
{{else}}
|
||
|
<div class="list-group" id="myUL">
|
||
|
{{range $element := .Data}}
|
||
|
<a class="list-group-item list-group-item-action" href={{$element.ID|show "Participant"}}>
|
||
|
<span class="fa fa-user"></span>
|
||
|
{{$element|string}}
|
||
|
<div class="text-right">
|
||
|
{{$options := `noElements: "no subelements"`}}
|
||
|
{{/*template "small" dict "options" ($options | yaml) "data" $element.SubElements*/}}
|
||
|
</div>
|
||
|
</a>
|
||
|
{{end}}
|
||
|
{{end}}
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
{{ end }}
|