Create blueprint for exercises
This commit is contained in:
@@ -213,7 +213,8 @@
|
||||
<div class="mt-10">
|
||||
<h4 class="text-lg font-semibold text-gray-900 mb-4">Add New Exercise</h4>
|
||||
<form class="bg-gray-50 p-6 rounded-lg border border-gray-100"
|
||||
hx-post="{{ url_for('create_exercise') }}" hx-swap="beforeend" hx-target="#new-exercise" _="on htmx:afterRequest
|
||||
hx-post="{{ url_for('exercises.create_exercise') }}" hx-swap="beforeend" hx-target="#new-exercise"
|
||||
_="on htmx:afterRequest
|
||||
render #notification-template with (message: 'Exercise added') then append it to #notifications-container
|
||||
then call _hyperscript.processNode(#notifications-container)
|
||||
then reset() me">
|
||||
|
||||
Reference in New Issue
Block a user