Add same graphs to person list view

This commit is contained in:
Peter Stockings
2023-12-11 17:48:51 +11:00
parent 2285e870fb
commit e93c92a452
2 changed files with 15 additions and 2 deletions

View File

@@ -2,6 +2,14 @@
{% block content %}
<div class="w-full mb-4 grid grid-cols-1 xl:grid-cols-2 gap-4">
{% for graph in person['PersonGraphs'] %}
<div class="bg-white shadow rounded-lg p-4 sm:p-6 xl:p-8">
{{ render_partial('partials/svg_line_graph.html', **graph) }}
</div>
{% endfor %}
</div>
<a hx-get="{{ url_for('get_person', person_id=person['PersonId']) }}"
hx-include="[name='exercise_id'],[name='min_date'],[name='max_date']" hx-target="#container"
hx-trigger="refreshView" id="refreshViewElement"></a>