print.html
| 1 | {{define "print"}}<!doctype html> |
| 2 | <html lang="de"> |
| 3 | <head> |
| 4 | <meta charset="utf-8"> |
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
| 6 | <title>{{.H.Title}}</title> |
| 7 | <link rel="stylesheet" href="/static/print.css"> |
| 8 | </head> |
| 9 | <body> |
| 10 | <p class="hint">Drucken oder als PDF speichern: <kbd>Strg</kbd>+<kbd>P</kbd> (Tablet/Handy: Teilen → Drucken). Dieser Hinweis erscheint nicht im Ausdruck.</p> |
| 11 | <header> |
| 12 | <div> |
| 13 | <h1>{{.H.Title}}</h1> |
| 14 | {{with .H.Recipient}}<p class="for">für {{.}}</p>{{end}} |
| 15 | </div> |
| 16 | <div class="meta">{{.Practice}}<br>{{date .Today}}</div> |
| 17 | </header> |
| 18 | {{with .H.Notes}}<section class="notes">{{md .}}</section>{{end}} |
| 19 | |
| 20 | {{range $i, $it := .Items}} |
| 21 | <section class="ex"> |
| 22 | <h2><span class="num">{{add1 $i}}</span> {{$it.Entry.Title}}</h2> |
| 23 | <div class="ex-body"> |
| 24 | {{with images $it.Media}}<div class="pics">{{range .}}<img src="/medien/{{.Filename}}" alt="{{.Caption}}">{{end}}</div>{{end}} |
| 25 | <div class="text"> |
| 26 | {{if $it.Entry.PatientText}}{{md $it.Entry.PatientText}}{{else}}<p>{{$it.Entry.Summary}}</p>{{end}} |
| 27 | {{with $it.Dosage}}<p class="dose">{{.}}</p>{{end}} |
| 28 | {{with $it.Note}}<p class="note">{{.}}</p>{{end}} |
| 29 | </div> |
| 30 | </div> |
| 31 | </section> |
| 32 | {{end}} |
| 33 | <footer>Bei starken oder zunehmenden Beschwerden die Übung pausieren und Rücksprache halten.</footer> |
| 34 | </body> |
| 35 | </html>{{end}} |
| 36 |