Files
Stride/app/templates/_training_settings.html
T

10 lines
1.8 KiB
HTML

{% include '_fitness_zones.html' %}
<section class="panel settings-card"><span class="eyebrow">EFFORT DISTRIBUTION</span><h2>Your heart-rate bands</h2>
<p class="field-help">Set two boundaries for your lower, middle and upper effort bands. Use your own chosen thresholds; these labels do not infer physiological zones.</p>
<form method="post" action="{{ url_for('training.bands') }}" class="stack"><input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
<label>Lower / middle boundary (bpm)<input name="lower" type="number" min="30" max="239" value="{{ current_user.hr_bands[0] if current_user.hr_bands else '' }}"></label>
<label>Middle / upper boundary (bpm)<input name="upper" type="number" min="31" max="240" value="{{ current_user.hr_bands[1] if current_user.hr_bands else '' }}"></label>
<p class="field-help">Recorded HR at a boundary belongs to the higher band. Clear both fields to remove your bands. Stats exposes actual recorded minutes in each band.</p><button class="button primary">Save bands</button></form></section>
{% if connection %}<section class="panel settings-card"><span class="eyebrow">DAILY RECOVERY</span><h2>Recovery observations</h2><p>Import private resting HR, overnight HRV, sleep duration and daily stress from Garmin.</p><p class="field-help">{{ connection.health_message }} Historical observations fill gradually during hourly sync. Missing watch observations remain missing.</p>
<form method="post" action="{{ url_for('web.garmin_action', action='health') }}"><input type="hidden" name="csrf_token" value="{{ csrf_token() }}"><input type="hidden" name="enabled" value="{{ 'no' if connection.health_enabled else 'yes' }}"><button class="button secondary">{{ 'Pause' if connection.health_enabled else 'Enable' }} daily recovery sync</button></form></section>{% endif %}