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:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user