Download this file
| 1 | {{/* Delete, asked first (polish audit §B3: one click deleted a document, |
| 2 | with no undo). A page rather than a dialog: it works with scripts off, |
| 3 | and nothing on the page behind it can take a keystroke meant for it. |
| 4 | Data: documentPage, with Title and ID. */}} |
| 5 | {{define "content"}} |
| 6 | <section rst-confirm> |
| 7 | <h1>Delete document</h1> |
| 8 | <p>Delete “{{.Title}}” from Memoria? Nobody here will find it in a search again, and this can’t be undone.</p> |
| 9 | <form method="post" action="/documents/{{.ID}}/delete"> |
| 10 | <button rst-btn="danger" type="submit">Delete</button> |
| 11 | <a rst-btn href="/">Cancel</a> |
| 12 | </form> |
| 13 | </section> |
| 14 | {{end}} |
| 15 | |