Make dashboard->person link htmx driven

This commit is contained in:
Peter Stockings
2022-11-23 22:58:46 +11:00
parent 56ceb87867
commit 7788fb9216

View File

@@ -19,8 +19,10 @@
<span class="text-base font-normal text-gray-500">Current rep maxes</span>
</div>
<div class="flex-shrink-0">
<a href="{{ url_for('get_person' ,person_id=p['PersonId']) }}"
class="text-sm font-medium text-cyan-600 hover:bg-gray-100 rounded-lg p-2">View workouts</a>
<a hx-get="{{ url_for('get_person' ,person_id=p['PersonId']) }}" hx-push-url="true"
hx-target="#container"
class="text-sm font-medium text-cyan-600 hover:bg-gray-100 rounded-lg p-2 cursor-pointer">View
workouts</a>
</div>
</div>