Switch from using workout modal and change to workout page, still need to cleanup modal logic and templates. Need to fix workout tag functionality
This commit is contained in:
15
templates/partials/exercise/exercise_select.html
Normal file
15
templates/partials/exercise/exercise_select.html
Normal file
@@ -0,0 +1,15 @@
|
||||
<div class="relative" _="on click from elsewhere set the innerHTML of #exercise-results to ''">
|
||||
<input
|
||||
class="appearance-none block w-full bg-gray-200 text-gray-700 border border-gray-200 rounded py-3 px-4 leading-tight focus:outline-none focus:bg-white focus:border-gray-500"
|
||||
id="exercise-search" type="text" name="query" placeholder="Search exercises..."
|
||||
hx-get="{{ url_for('get_exercises', person_id=person_id) }}" hx-target="#exercise-results"
|
||||
hx-trigger="keyup changed delay:200ms" autocomplete="off">
|
||||
|
||||
<!-- Dropdown Menu -->
|
||||
<div id="exercise-results" class="absolute w-full bg-white mt-1 rounded shadow-md z-10">
|
||||
<!-- Results will be injected here -->
|
||||
</div>
|
||||
|
||||
<input type="hidden" name="exercise_id" id="selected-exercise">
|
||||
|
||||
</div>
|
||||
Reference in New Issue
Block a user