{{ define "dialog-button-clear" }}
    <button
        hx-get="/nothing"
        hx-target="#app-dialog"
        hx-on:click="document.getElementById('app-dialog').style.display = 'none';">
        {{ if not . }}Annuler{{ else }}{{ . }}{{ end }}
    </button>
{{ end }}

{{ define "dialog-error" }}
    <p>Error: {{ .Error }}</p>
    {{ template "dialog-button-clear" }}
{{ end }}
