Clear form when adding topset on workout modal
This commit is contained in:
@@ -85,8 +85,12 @@
|
||||
<div class="flex items-center p-6 space-x-2 border-t border-gray-200 rounded-b dark:border-gray-600">
|
||||
<form class="w-full max-w-lg"
|
||||
hx-post="{{ url_for('create_topset', person_id=workout['PersonId'], workout_id=workout['WorkoutId']) }}"
|
||||
hx-swap="beforeend" hx-target="#new-workout"
|
||||
_="on htmx:afterOnLoad if #no-workouts add .hidden to #no-workouts">
|
||||
hx-swap="beforeend" hx-target="#new-workout" _="on htmx:afterOnLoad if #no-workouts add .hidden to #no-workouts end
|
||||
on htmx:afterRequest
|
||||
js
|
||||
displayNotification('Topset added')
|
||||
end
|
||||
then reset() me">
|
||||
|
||||
<div class="flex flex-wrap -mx-3 mb-2">
|
||||
<div class="w-full md:w-1/3 px-3 mb-6 md:mb-0">
|
||||
|
||||
Reference in New Issue
Block a user