Add button to cancel workout note edit
This commit is contained in:
@@ -19,6 +19,17 @@
|
|||||||
<textarea
|
<textarea
|
||||||
class="block ml-1 p-2.5 w-full text-sm text-gray-900 bg-white rounded-lg border border-gray-300 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-800 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"
|
class="block ml-1 p-2.5 w-full text-sm text-gray-900 bg-white rounded-lg border border-gray-300 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-800 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"
|
||||||
placeholder="Your note..." name="note" rows="2">{{ note }}</textarea>
|
placeholder="Your note..." name="note" rows="2">{{ note }}</textarea>
|
||||||
|
<div class="flex flex-col">
|
||||||
|
<button
|
||||||
|
class="inline-flex justify-center p-2 text-blue-600 rounded-full cursor-pointer hover:bg-blue-100 dark:text-blue-500 dark:hover:bg-gray-600"
|
||||||
|
hx-get="{{ url_for('get_workout_note', person_id=person_id, workout_id=workout_id) }}"
|
||||||
|
hx-target="#workout-note">
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5"
|
||||||
|
stroke="currentColor" class="w-6 h-6">
|
||||||
|
<path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12" />
|
||||||
|
</svg>
|
||||||
|
<span class="sr-only">Cancel</span>
|
||||||
|
</button>
|
||||||
<button
|
<button
|
||||||
class="inline-flex justify-center p-2 text-blue-600 rounded-full cursor-pointer hover:bg-blue-100 dark:text-blue-500 dark:hover:bg-gray-600"
|
class="inline-flex justify-center p-2 text-blue-600 rounded-full cursor-pointer hover:bg-blue-100 dark:text-blue-500 dark:hover:bg-gray-600"
|
||||||
hx-put="{{ url_for('update_workout_note', person_id=person_id, workout_id=workout_id) }}"
|
hx-put="{{ url_for('update_workout_note', person_id=person_id, workout_id=workout_id) }}"
|
||||||
@@ -31,5 +42,6 @@
|
|||||||
<span class="sr-only">Save note</span>
|
<span class="sr-only">Save note</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
Reference in New Issue
Block a user