summaryrefslogtreecommitdiff
path: root/app/templates
diff options
context:
space:
mode:
authorstilbruch <stilbruch@protonmail.com>2022-05-09 00:50:45 -0500
committerstilbruch <stilbruch@protonmail.com>2022-05-09 00:50:45 -0500
commite31a78c3cc4b7691c67b8109d4984a3a857b9fda (patch)
tree88de2c8bb990d6ed81a368dc9ad0d246809f98a5 /app/templates
parent635e1b13a45bdb240e07d525b55c3f22fd1be0cb (diff)
downloadStrengthy-e31a78c3cc4b7691c67b8109d4984a3a857b9fda.tar.xz
Strengthy-e31a78c3cc4b7691c67b8109d4984a3a857b9fda.zip
Fixed workout create bug
Diffstat (limited to 'app/templates')
-rw-r--r--app/templates/workout/create.html10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/templates/workout/create.html b/app/templates/workout/create.html
index 628ef74..569717a 100644
--- a/app/templates/workout/create.html
+++ b/app/templates/workout/create.html
@@ -24,9 +24,6 @@
<div id="rows" class="field">
{% for entry in form.exercises.entries %}
- {% if workout %}
- {{ entry['id']() }}
- {% endif %}
<div class="field is-horizontal">
<div class="field-body">
<div class="field">
@@ -53,13 +50,13 @@
<div class="field has-addons">
<div class="control has-icons-left">
<div class="select">
- {{ entry['type'] }}
+ {{ entry['type'](oninput='handleChange(this)') }}
</div>
<div class="icon is-small is-left">
<i class="fa fa-calculator"></i>
</div>
</div>
- {{ entry['units'](class_='input', placeholder="Reps") }}
+ {{ entry['units'](class_='input', placeholder='Reps') }}
</div>
<p class="button is-danger" onclick="handleDel(this)">
<span class="icon is-small">
@@ -68,6 +65,9 @@
</p>
</div>
</div>
+ {% if workout %}
+ {{ entry['id']() }}
+ {% endif %}
{% endfor %}
</div>