Move person graphs down below title

This commit is contained in:
Peter Stockings
2025-01-27 13:13:59 +11:00
parent 2a5afe51b4
commit d2c03cb81b
3 changed files with 14 additions and 13 deletions

View File

@@ -5,11 +5,6 @@
<div class="flex max-w-full overflow-x-hidden">
<div class="bg-white shadow rounded-lg pt-2 pb-2 sm:w-full xl:p-8 md:w-full">
<div class="hidden" hx-get="{{ url_for('get_people_graphs') }}"
hx-include="[name='exercise_id'],[name='min_date'],[name='max_date']"
hx-vals='{"person_id": "{{ person_id }}"}' hx-trigger="load" hx-target="this" hx-swap="outerHTML">
</div>
<div class="mb-4 flex items-center justify-between px-2 md:px-3">
<div>
<h3 class="text-xl font-bold text-gray-900 mb-2">{{ person_name }}</h3>
@@ -99,6 +94,11 @@
{{ render_partial('partials/tags.html',person_id=person_id, tags=tags) }}
<div class="hidden" hx-get="{{ url_for('get_people_graphs') }}"
hx-include="[name='exercise_id'],[name='min_date'],[name='max_date']"
hx-vals='{"person_id": "{{ person_id }}"}' hx-trigger="load" hx-target="this" hx-swap="outerHTML">
</div>
<div class="mt-4 mb-4 w-full grid grid-cols-1 2xl:grid-cols-2 gap-4">
{% for graph in exercise_progress_graphs %}
{{ render_partial('partials/sparkline.html', **graph.progress_graph) }}