Show exercise weekly/monthly progress on exercise history table
This commit is contained in:
@@ -1,9 +1,12 @@
|
||||
{% if offset == 0 %}
|
||||
<div id="exercise-history-container"
|
||||
class="w-full bg-gray-50 dark:bg-gray-800 p-4 border-t border-gray-200 dark:border-gray-700 shadow-inner overflow-x-auto">
|
||||
<div class="flex items-center justify-between sm:justify-center relative mb-4">
|
||||
<div class="flex items-center justify-between sm:justify-center relative mb-1">
|
||||
<div class="flex items-center justify-center gap-2 w-full">
|
||||
<h4 class="text-sm font-semibold text-gray-900 dark:text-white">History</h4>
|
||||
<h4 class="text-l font-semibold text-blue-400">{{ title }}</h4>
|
||||
<div hx-get="{{ url_for('workout.get_topset_achievements', person_id=person_id, workout_id=latest_workout_id, topset_id=latest_topset_id) }}"
|
||||
hx-trigger="load" hx-target="this" hx-swap="innerHTML" class="flex items-center">
|
||||
</div>
|
||||
</div>
|
||||
<div class="absolute right-0 z-10">
|
||||
<button
|
||||
@@ -20,6 +23,13 @@
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
{% if best_fit_formula %}
|
||||
<h2 class="text-xs font-semibold text-blue-200 mb-4 text-center">
|
||||
{{ best_fit_formula.kg_per_week }} kg/week, {{ best_fit_formula.kg_per_month }} kg/month
|
||||
</h2>
|
||||
{% else %}
|
||||
<div class="mb-4"></div>
|
||||
{% endif %}
|
||||
<table class="w-full text-left text-sm text-gray-500 dark:text-gray-400">
|
||||
<thead class="text-xs text-gray-700 uppercase bg-gray-100 dark:bg-gray-700 dark:text-gray-400">
|
||||
<tr>
|
||||
|
||||
Reference in New Issue
Block a user