Download this file
| 1 | {{define "confirm_action"}}{{template "top" .}} |
| 2 | <div class="pagehead"> |
| 3 | <p class="eyebrow">Confirm · {{.AppName}}</p> |
| 4 | <h1>{{.Confirm.Title}}</h1> |
| 5 | </div> |
| 6 | <div class="confirm-card"> |
| 7 | {{range .Confirm.Lines}}<p>{{.}}</p>{{end}} |
| 8 | {{if .Confirm.Warn}}<p class="error">{{.Confirm.Warn}}</p>{{end}} |
| 9 | <form method="post" action="{{.Confirm.Action}}"> |
| 10 | {{range .Confirm.Fields}}<input type="hidden" name="{{index . 0}}" value="{{index . 1}}">{{end}} |
| 11 | <input type="hidden" name="confirmed" value="1"> |
| 12 | {{if .Confirm.CheckboxName}} |
| 13 | <p><label class="small"><input type="checkbox" name="{{.Confirm.CheckboxName}}" value="1"{{if .Confirm.CheckboxChecked}} checked{{end}}> |
| 14 | {{.Confirm.CheckboxLabel}}</label></p> |
| 15 | {{end}} |
| 16 | <div class="actions"> |
| 17 | <button type="submit"{{if .Confirm.Danger}} class="btn-danger"{{end}}>{{.Confirm.Button}}</button> |
| 18 | <a href="{{.Confirm.CancelURL}}">Cancel</a> |
| 19 | </div> |
| 20 | </form> |
| 21 | {{if .Confirm.Note}}<p class="small confirm-note">{{.Confirm.Note}}</p>{{end}} |
| 22 | </div> |
| 23 | {{template "bottom" .}}{{end}} |
| 24 | |