feature(ui): permettre la modification de fichiers par UI
This commit is contained in:
parent
5943791364
commit
f6a8dfe2f4
9 changed files with 315 additions and 1 deletions
13
ui/dialog.html
Normal file
13
ui/dialog.html
Normal 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 }}
|
Loading…
Add table
Add a link
Reference in a new issue