Download this file
| 1 | {{/* deck_delete — GET /d/{sqid}/delete, the destructive action's own |
| 2 | page. |
| 3 | |
| 4 | The shape confirm-form is written for: back-nav, the question as |
| 5 | the page title, the explanation, then the form. The GET mutates |
| 6 | nothing, Cancel is a real link and comes first in the DOM, and the |
| 7 | whole thing works with scripts off — which is the point of a page |
| 8 | rather than a modal. */}} |
| 9 | {{define "content"}} |
| 10 | {{template "back-nav" dict "Href" .BackHref "Label" .BackLabel}} |
| 11 | {{template "page-header" dict "Title" .Title}} |
| 12 | <div rst-box> |
| 13 | <p>{{.Body}}</p> |
| 14 | {{template "confirm-form" dict |
| 15 | "Action" .Action "Label" .Label "Danger" true |
| 16 | "CancelHref" .CancelHref "CancelLabel" .CancelLabel}} |
| 17 | </div> |
| 18 | {{end}} |
| 19 | |