summaryrefslogtreecommitdiff
path: root/app/templates/workout/record.html
diff options
context:
space:
mode:
Diffstat (limited to 'app/templates/workout/record.html')
-rw-r--r--app/templates/workout/record.html57
1 files changed, 29 insertions, 28 deletions
diff --git a/app/templates/workout/record.html b/app/templates/workout/record.html
index 1cfeda1..8207e1b 100644
--- a/app/templates/workout/record.html
+++ b/app/templates/workout/record.html
@@ -25,35 +25,36 @@
{% if exercise.type == 'time' %}
<tr data-is-timer=true data-timer-seconds={{ exercise.units}}>
{% else %}
- <tr data-is-reps=true>
- {% endif %}
- <th>{{ loop.index }}</th>
- {% if exercise.type == 'time' %}
- <td>
- <div class='timer' style="display:flex;align-items:center;font-size:1em;">
- <button id='timer-{{ outer_loop.index }}' type="button" onclick="onClickPausePlayTimer(this)" class="button">
- <span class="icon is-small">
- <i class="fa fa-play"></i>
- </span>
- </button>
- <span style='padding-left: 15px;' id='timer-time-{{ outer_loop.index }}'>
- {{ exercise.units }} seconds
- </span>
- </div>
- </td>
- {% else %}
- <td>{{ set['lbs'](class_='input', type='number', onkeydown='onKeyDown(event)') }}</td>
- <td>{{ set['units'](class_='input', onkeydown='onKeyDown(event)') }}</td>
- {% endif %}
- <td>
- <a class="button" onClick="onClickSetCheck(this)">
+ <tr data-is-reps=true>
+ {% endif %}
+ <th>{{ loop.index }}</th>
+ {% if exercise.type == 'time' %}
+ <td>
+ <div class='timer' style="display:flex;align-items:center;font-size:1em;">
+ <button id='timer-{{ outer_loop.index }}' type="button"
+ onclick="onClickPausePlayTimer(this)" class="button">
<span class="icon is-small">
- <i class="fa fa-check"></i>
+ <i class="fa fa-play"></i>
</span>
- </a>
- </td>
- </tr>
- {% endfor %}
+ </button>
+ <span style='padding-left: 15px;' id='timer-time-{{ outer_loop.index }}'>
+ {{ '%02d' % (exercise.units / 60) }}:{{ '%02d' % (exercise.units % 60) }}
+ </span>
+ </div>
+ </td>
+ {% else %}
+ <td>{{ set['lbs'](class_='input', type='number', onkeydown='onKeyDown(event)') }}</td>
+ <td>{{ set['units'](class_='input', onkeydown='onKeyDown(event)') }}</td>
+ {% endif %}
+ <td>
+ <a class="button" onClick="onClickSetCheck(this)">
+ <span class="icon is-small">
+ <i class="fa fa-check"></i>
+ </span>
+ </a>
+ </td>
+ </tr>
+ {% endfor %}
</tbody>
</table>
<div class="buttons is-centered">
@@ -80,4 +81,4 @@
<script async type="text/javascript" src="/static/js/record.js"></script>
-{% endblock %}
+{% endblock %} \ No newline at end of file