Compare commits

...

2 commits

Author SHA1 Message Date
f6243fba91 move adminer off of common port
this is just to be less annoying because syncthing uses 8080 on one of my dev machines
2023-11-15 12:49:08 -08:00
6718f345ae clear form if successful response 2023-11-15 12:48:37 -08:00
2 changed files with 2 additions and 2 deletions

View file

@ -21,4 +21,4 @@ services:
image: adminer
restart: always
ports:
- 8080:8080
- 8081:8080

View file

@ -11,7 +11,7 @@
@:return_to_main_html()
</div>
<form hx-post="/api/dancers" hx-target="next #dancer_list" hx-swap="afterbegin">
<form hx-post="/api/dancers" hx-target="next #dancer_list" hx-swap="afterbegin" hx-on::after-request=" if(event.detail.successful) this.reset()">
<div class="flex w-3/5">
<div class="relative">
<input type="text" id="name" name="name"