Partial refactor of tags functionality

Still need to move tags db logic to BP and move workout tag logic to BP as well
This commit is contained in:
Peter Stockings
2025-04-19 21:10:34 +10:00
parent e947feb3e3
commit 7aa7f9b8dc
6 changed files with 180 additions and 92 deletions

View File

@@ -92,7 +92,9 @@
</div>
</div>
{{ render_partial('partials/tags.html',person_id=None, tags=tags) }}
<div id="tags-container">
{{ render_partial('partials/tags.html', person_id=None, tags=tags) }}
</div>
</div>
<div class="hidden" hx-get="{{ url_for('get_people_graphs') }}"
@@ -160,7 +162,7 @@
<tbody class="bg-white">
{% for set in exercise.sets %}
<tr hx-get="{{ url_for('goto_tag') }}"
<tr hx-get="{{ url_for('tags.goto_tag') }}"
hx-vals='{"filter": "?exercise_id={{ set.exercise_id }}", "person_id" : "{{ person.id }}" }'
hx-target="#container" hx-swap="innerHTML" hx-push-url="true"
class="cursor-pointer">