Create blueprint for exercises

This commit is contained in:
Peter Stockings
2026-02-08 16:08:30 +11:00
parent ef91dc1fe4
commit 0cd74f7207
10 changed files with 140 additions and 111 deletions

View File

@@ -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">