Add default graph showing average rpm/bpm over week, and remove default selected attribute 'workout_count'
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
</label>
|
</label>
|
||||||
<select data-te-select-init data-te-select-size="lg" name="attributes"
|
<select data-te-select-init data-te-select-size="lg" name="attributes"
|
||||||
class="bg-gray-50 border border-gray-300 " multiple _="init js(me)
|
class="bg-gray-50 border border-gray-300 " multiple _="init js(me)
|
||||||
te.Select.getOrCreateInstance(me).setValue({{ ['workout_count'] }})
|
te.Select.getOrCreateInstance(me).setValue({{ [] }})
|
||||||
end">
|
end">
|
||||||
{% for val,name in user.attributes %}
|
{% for val,name in user.attributes %}
|
||||||
<option value="{{ val }}">{{ name }}</option>
|
<option value="{{ val }}">{{ name }}</option>
|
||||||
@@ -93,4 +93,6 @@
|
|||||||
loading="lazy" alt="No image" class="mx-auto" _="on click remove me">
|
loading="lazy" alt="No image" class="mx-auto" _="on click remove me">
|
||||||
<img src="{{ url_for('graph_user_workouts', user_id=user.id, period='month', attributes=['duration']) }}"
|
<img src="{{ url_for('graph_user_workouts', user_id=user.id, period='month', attributes=['duration']) }}"
|
||||||
loading="lazy" alt="No image" class="mx-auto" _="on click remove me">
|
loading="lazy" alt="No image" class="mx-auto" _="on click remove me">
|
||||||
|
<img src="{{ url_for('graph_user_workouts', user_id=user.id, period='week', attributes=['average_rpm','average_bpm']) }}"
|
||||||
|
loading="lazy" alt="No image" class="mx-auto" _="on click remove me">
|
||||||
</div>
|
</div>
|
||||||
Reference in New Issue
Block a user