Create blueprint for exercises
This commit is contained in:
@@ -4,7 +4,8 @@
|
||||
class="w-full bg-gray-200 text-gray-700 border border-gray-200 rounded py-2 px-4 leading-tight focus:outline-none focus:bg-white focus:border-gray-500"
|
||||
_="on click from me call event.stopPropagation()">
|
||||
<!-- Save Icon -->
|
||||
<button hx-post="{{ url_for('edit_exercise_name', exercise_id=exercise.exercise_id, person_id=person_id) }}"
|
||||
<button
|
||||
hx-post="{{ url_for('exercises.edit_exercise_name', exercise_id=exercise.exercise_id, person_id=person_id) }}"
|
||||
hx-target="closest li" hx-swap="outerHTML" hx-include="closest li"
|
||||
class="text-gray-500 hover:text-gray-700 ml-2" _="on click from me call event.stopPropagation()">
|
||||
<!-- Tick icon SVG -->
|
||||
@@ -14,7 +15,8 @@
|
||||
</svg>
|
||||
</button>
|
||||
<!-- Delete Icon -->
|
||||
<button hx-delete="{{ url_for('delete_exercise', exercise_id=exercise.exercise_id, person_id=person_id) }}"
|
||||
<button
|
||||
hx-delete="{{ url_for('exercises.delete_exercise', exercise_id=exercise.exercise_id, person_id=person_id) }}"
|
||||
hx-target="closest li" hx-swap="outerHTML" class="text-red-500 hover:text-red-700 ml-2"
|
||||
hx-confirm="Are you sure you wish to delete {{ exercise.name }} from exercises?"
|
||||
_="on click from me call event.stopPropagation()">
|
||||
|
||||
Reference in New Issue
Block a user