Enhance routine run UI with selectable items, check icons, and weight select dropdown
This commit is contained in:
@@ -113,15 +113,20 @@
|
||||
<div class="list">
|
||||
@foreach (var entry in RunEntries)
|
||||
{
|
||||
<div class="list-item @(entry.Completed ? "done" : string.Empty)">
|
||||
<label class="checkbox-row">
|
||||
<input type="checkbox" checked="@entry.Completed" @onchange="() => ToggleRunCompleted(entry.ExerciseId)" />
|
||||
<span>@GetExerciseName(entry.ExerciseId)</span>
|
||||
</label>
|
||||
<div class="input-unit">
|
||||
<input class="input input-sm" type="number" step="0.5" @bind="entry.Weight" @bind:event="oninput" />
|
||||
<span class="unit">kg</span>
|
||||
<div class="list-item selectable @(entry.Completed ? "selected" : string.Empty)" @onclick="() => ToggleRunCompleted(entry.ExerciseId)">
|
||||
<div class="item-title">@GetExerciseName(entry.ExerciseId)</div>
|
||||
<div class="item-actions" @onclick:stopPropagation="true">
|
||||
<div class="input-unit">
|
||||
<select class="input input-sm" @bind="entry.Weight">
|
||||
@foreach (var w in WeightOptions)
|
||||
{
|
||||
<option value="@w">@w</option>
|
||||
}
|
||||
</select>
|
||||
<span class="unit">kg</span>
|
||||
</div>
|
||||
</div>
|
||||
<span class="check-icon @(entry.Completed ? "visible" : string.Empty)" aria-hidden="true">✓</span>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user