Download this file
| 1 | {{define "content"}} |
| 2 | <div rst-stack><h1>{{copy "templates.title"}}</h1><a href="/playbooks">{{copy "playbooks.title"}}</a> |
| 3 | <p><a rst-btn href="/specialists/new">{{icon "plus"}}{{copy "specialists.new"}}</a></p> |
| 4 | {{$group := ""}}{{$request := .Library.RequestID}} |
| 5 | {{range .Library.Templates}} |
| 6 | {{if ne .Group $group}}{{if .GroupKey}}<h2>{{copy .GroupKey}}</h2>{{end}}{{$group = .Group}}{{end}} |
| 7 | <section equipo-card rst-stack><h3>{{icon .Icon}}{{copy .NameKey}}</h3><p>{{copy .DescriptionKey}}</p> |
| 8 | <form method="post" action="/templates/{{.Ref.ID}}/install"> |
| 9 | <input type="hidden" name="request_id" value="{{$request}}-{{.Ref.ID}}"> |
| 10 | <input type="hidden" name="version" value="{{.Ref.Version}}"> |
| 11 | <button rst-btn type="submit">{{copy "templates.install"}}</button> |
| 12 | </form></section> |
| 13 | {{end}}</div> |
| 14 | {{end}} |
| 15 | |