operators.html.tpl 651 B

123456789101112131415161718192021222324252627282930
  1. {{ define "content" }}
  2. <div class="container">
  3. {{$options := `
  4. title: "Operatori"
  5. buttonTitle: "Crea nuovo operatore"
  6. `}}
  7. {{template "read_all_header" dict "options" ($options | yaml) "lengthData" (len .Data) "modelPath" (create "Operator")}}
  8. {{template "search_input"}}
  9. {{if not .}}
  10. {{template "display_no_elements"}}
  11. {{else}}
  12. <div class="list-group" id="myUL">
  13. {{range $operator := .Data}}
  14. <a class="list-group-item list-group-item-action" href={{$operator.ID|show "Operator"}}>
  15. <span class="fa fa-user"></span>
  16. {{$operator|string}}
  17. </a>
  18. {{end}}
  19. {{end}}
  20. </div>
  21. </div>
  22. {{ end }}