feature(ui): permettre la modification de fichiers par UI

This commit is contained in:
Victor Lacasse-Beaudoin 2024-10-31 19:18:45 -04:00
parent 5943791364
commit f6a8dfe2f4
9 changed files with 315 additions and 1 deletions

13
ui/dialog.html Normal file
View file

@ -0,0 +1,13 @@
{{ 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 }}