Clear form and display temporary notification when adding users/exercises on settings page
This commit is contained in:
@@ -75,7 +75,12 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<form class="w-full mt-3" hx-post="{{ url_for('create_person') }}" hx-swap="beforeend" hx-target="#new-person">
|
||||
<form class="w-full mt-3" hx-post="{{ url_for('create_person') }}" hx-swap="beforeend" hx-target="#new-person"
|
||||
_="on htmx:afterRequest
|
||||
js
|
||||
displayNotification('User added')
|
||||
end
|
||||
then reset() me">
|
||||
<div class="flex flex-wrap -mx-3 mb-2">
|
||||
<div class="grow px-3">
|
||||
<label class="block uppercase tracking-wide text-gray-700 text-xs font-bold mb-2" for="grid-city">
|
||||
@@ -177,7 +182,11 @@
|
||||
</div>
|
||||
|
||||
<form class="w-full mt-8" hx-post="{{ url_for('create_exercise') }}" hx-swap="beforeend"
|
||||
hx-target="#new-exercise">
|
||||
hx-target="#new-exercise" _="on htmx:afterRequest
|
||||
js
|
||||
displayNotification('Exercise added')
|
||||
end
|
||||
then reset() me">
|
||||
<div class="flex flex-wrap -mx-3 mb-2">
|
||||
<div class="grow px-3">
|
||||
<label class="block uppercase tracking-wide text-gray-700 text-xs font-bold mb-2" for="grid-city">
|
||||
|
||||
Reference in New Issue
Block a user