95 lines
No EOL
3.2 KiB
HTML
95 lines
No EOL
3.2 KiB
HTML
<template name="logEntry">
|
|
<h1>Workout Log Entry</h1>
|
|
<div class="grid">
|
|
<div>
|
|
<select name="selectExerciseToLog" class="selectExerciseToLog" id="selectExerciseToLog">
|
|
<option value="" disabled selected> + Add Log Entry</option>
|
|
{{#each workoutLog}}
|
|
<option value="{{_id}} | {{exerciseName}}">{{exerciseName}}</option>
|
|
{{/each}}
|
|
</select>
|
|
</div>
|
|
</div>
|
|
|
|
{{#if $eq exIdSelected true}}
|
|
<div class="grid">
|
|
{{#if $eq logIdSet false}}
|
|
<div>
|
|
<input type="number" class="exerciseWeight" id="exerciseWeight" placeholder="Enter Weight..." />
|
|
</div>
|
|
{{else}}
|
|
<div>
|
|
<h4>{{enteredWeight}}</h4>
|
|
</div>
|
|
{{/if}}
|
|
<div>
|
|
<button class="outline addASet" id="addASet">+ Add a Set</button>
|
|
</div>
|
|
</div>
|
|
{{#if $eq addSet true}}
|
|
<div class="grid">
|
|
<div>
|
|
<input type="number" class="addRepsVal" id="addRepsVal_{{ setNo }}">
|
|
</div>
|
|
<div>
|
|
<button class="saveSet secondary" id="saveSet">Save Set</button>
|
|
</div>
|
|
</div>
|
|
{{/if}}
|
|
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Set #</th>
|
|
<th>Reps</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{{#each setsRecorded}}
|
|
<tr>
|
|
<td>{{setNumber}}</td>
|
|
<td>{{repCount}}</td>
|
|
</tr>
|
|
{{/each}}
|
|
</tbody>
|
|
</table>
|
|
{{#if $neq prevWorkout false}}
|
|
<hr>
|
|
<div class="article">
|
|
<header>Last Workout on {{prevWorkout.dateAdded}}</header>
|
|
<table class="striped">
|
|
<thead>
|
|
<tr>
|
|
<th>Weight</th>
|
|
<th>Sets</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>{{prevWorkout.exerciseWeight}}</td>
|
|
<td>
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Set #</th>
|
|
<th>Reps</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{{#each prevWorkout.sets}}
|
|
<tr>
|
|
<td>{{setNumber}}</td>
|
|
<td>{{repCount}}</td>
|
|
</tr>
|
|
{{/each}}
|
|
</tbody>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
{{/if}}
|
|
{{/if}}
|
|
{{> snackbar}}
|
|
</template> |