23 lines
633 B
HTML
23 lines
633 B
HTML
{{ define "dialog-document-delete" }}
|
|
{{ if .Error }}
|
|
{{ .Error }}
|
|
{{ else }}
|
|
<form
|
|
action=""
|
|
id="delete-document-form"
|
|
hx-delete="/admin/documents/edit/{{.Bucket}}/{{.Document}}"
|
|
hx-target="#app-dialog">
|
|
<label>
|
|
Effacer fichier <code>{{ .Bucket }}</code> / <code>{{ .Document }}</code>?
|
|
</label>
|
|
<br>
|
|
<input type="submit" id="delete-document-apply" value="Confirmer"/>
|
|
{{ template "dialog-button-clear" }}
|
|
</form>
|
|
{{ end }}
|
|
{{ end }}
|
|
|
|
{{ define "dialog-document-delete-result" }}
|
|
{{ . }}
|
|
{{ template "dialog-button-clear" "ok" }}
|
|
{{ end }}
|