oef/templates/responses.html.tpl

34 lines
845 B
Smarty
Raw Permalink Normal View History

2019-11-18 17:04:07 +01:00
{{ define "content" }}
<div class="container">
{{$options := `
2019-12-16 18:05:12 +01:00
title: "Prove dei partecipanti"
2019-12-16 07:50:18 +01:00
buttonTitle: "Crea nuova prova partecipante"
2019-11-18 17:04:07 +01:00
`}}
{{template "read_all_header" dict "options" ($options | yaml) "lengthData" (len .Data) "modelPath" (create "Response")}}
2020-01-27 15:22:11 +01:00
{{template "search_input" .Data}}
2019-11-18 17:04:07 +01:00
{{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 "Response"}}>
<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 }}