summary.html
| 1 | {{define "title"}}{{.S.Title}} – {{.P.Name}}{{end}} |
| 2 | {{define "content"}} |
| 3 | <nav aria-label="breadcrumb"><ul> |
| 4 | <li><a href="/patienten">Patienten</a></li> |
| 5 | <li><a href="/patient/{{.P.ID}}#zusammenfassungen">{{.P.Name}}</a></li> |
| 6 | <li>{{.S.Title}}</li> |
| 7 | </ul></nav> |
| 8 | {{if .Saved}}<p class="ok" role="status">Gespeichert.</p>{{end}} |
| 9 | <article> |
| 10 | <form method="post" action="/zusammenfassung/{{.S.ID}}"> |
| 11 | <div class="grid"> |
| 12 | <label>Titel <input name="title" value="{{.S.Title}}" required></label> |
| 13 | <label>Datum <input type="date" name="date" value="{{.S.Date}}"></label> |
| 14 | </div> |
| 15 | <label>Text für den Patienten |
| 16 | <textarea name="body" rows="22" class="mono">{{.S.Body}}</textarea> |
| 17 | <small>Markdown: <code>## Überschrift</code>, <code>- Punkt</code>, <code>**fett**</code>. |
| 18 | Zeilen mit <code>✎</code> sind Hinweise für dich und werden nicht gedruckt, ebenso leere Abschnitte.</small> |
| 19 | </label> |
| 20 | <div class="actions"> |
| 21 | <button type="submit">Speichern</button> |
| 22 | <button type="submit" name="next" value="druck" class="secondary">Speichern & Druckansicht</button> |
| 23 | </div> |
| 24 | </form> |
| 25 | </article> |
| 26 | |
| 27 | <article id="senden"> |
| 28 | <h3>Per E-Mail senden</h3> |
| 29 | {{if .Sent}}<p class="ok" role="status">Gesendet an {{.P.Email}}.</p>{{end}} |
| 30 | {{with .MailError}}<p class="error" role="alert">{{.}}</p>{{end}} |
| 31 | {{if .MailBlock}} |
| 32 | <p class="muted">{{.MailBlock}} <a href="/patient/{{.P.ID}}">Zu den Stammdaten</a></p> |
| 33 | {{else}} |
| 34 | <form method="post" action="/zusammenfassung/{{.S.ID}}/senden" class="inline"> |
| 35 | <button type="submit">Jetzt senden an {{.P.Email}}</button> |
| 36 | </form> |
| 37 | <small class="muted">Gesendet wird der <strong>gespeicherte</strong> Stand – vorher speichern.</small> |
| 38 | {{end}} |
| 39 | {{if .MailLog}} |
| 40 | <ul class="maillog">{{range .MailLog}} |
| 41 | <li>{{if .OK}}✓{{else}}✗{{end}} {{date .Sent}} {{.Sent.Local.Format "15:04"}} an {{.Recipient}}{{with .Error}} – <span class="error">{{.}}</span>{{end}}</li> |
| 42 | {{end}}</ul> |
| 43 | {{end}} |
| 44 | </article> |
| 45 | |
| 46 | <article class="summary-preview"> |
| 47 | <h3>Vorschau (gespeicherter Stand, ohne Hinweise)</h3> |
| 48 | <div class="prose">{{md .Preview}}</div> |
| 49 | </article> |
| 50 | |
| 51 | <details class="danger"> |
| 52 | <summary>Zusammenfassung löschen …</summary> |
| 53 | <form method="post" action="/zusammenfassung/{{.S.ID}}/loeschen"><button type="submit" class="danger">Endgültig löschen</button></form> |
| 54 | </details> |
| 55 | {{end}} |
| 56 |