handouts.html
| 1 | {{define "title"}}Handouts{{end}} |
| 2 | {{define "content"}} |
| 3 | <h2>Übungs-Handouts</h2> |
| 4 | <form method="post" action="/handouts" class="row"> |
| 5 | <input name="title" placeholder="Titel, z. B. Schulter – Woche 1" aria-label="Titel" required> |
| 6 | <input name="recipient" placeholder="Für (optional)" aria-label="Für"> |
| 7 | <button type="submit">Neues Handout</button> |
| 8 | </form> |
| 9 | {{if .Handouts}} |
| 10 | <div class="cards"> |
| 11 | {{range .Handouts}} |
| 12 | <a class="card" href="/handout/{{.ID}}"> |
| 13 | <strong>{{.Title}}</strong> |
| 14 | <span class="summary">{{with .Recipient}}Für {{.}} · {{end}}{{.Count}} Übung(en) · {{date .Updated}}</span> |
| 15 | </a> |
| 16 | {{end}} |
| 17 | </div> |
| 18 | {{else}} |
| 19 | <p class="muted">Noch keine Handouts.</p> |
| 20 | {{end}} |
| 21 | {{end}} |
| 22 |