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>
|
||||
<select data-te-select-init data-te-select-size="lg" name="attributes"
|
||||
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">
|
||||
{% for val,name in user.attributes %}
|
||||
<option value="{{ val }}">{{ name }}</option>
|
||||
@@ -93,4 +93,6 @@
|
||||
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']) }}"
|
||||
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>
|
||||
Reference in New Issue
Block a user