summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFivePixels <o5pxels@gmail.com>2022-05-04 16:10:08 -0500
committerFivePixels <o5pxels@gmail.com>2022-05-04 16:10:08 -0500
commit4b14772bc37d57482f9d1da6581329a8fbdc4cc7 (patch)
tree8f9d6ac393e936d23de86a4caef50e8f12375ae9
parentbbb1b6dba1e856872362f66d9c387e0a9e7e0a0f (diff)
downloadStrengthy-4b14772bc37d57482f9d1da6581329a8fbdc4cc7.tar.xz
Strengthy-4b14772bc37d57482f9d1da6581329a8fbdc4cc7.zip
Add time units (seconds) to input placeholder, on record_select update
no workouts message
-rw-r--r--app/static/js/create.js2
-rw-r--r--app/templates/workout/create.html2
-rw-r--r--app/templates/workout/record_select.html2
3 files changed, 3 insertions, 3 deletions
diff --git a/app/static/js/create.js b/app/static/js/create.js
index b65bc5a..0f63956 100644
--- a/app/static/js/create.js
+++ b/app/static/js/create.js
@@ -36,7 +36,7 @@ document.getElementById("add").onclick = handleAdd;
function handleChange(elem) {
if (elem.target.value == 'time') {
- elem.target.parentNode.parentNode.parentNode.children[1].placeholder = "Time";
+ elem.target.parentNode.parentNode.parentNode.children[1].placeholder = "Time (in seconds)";
elem.target.parentNode.parentNode.parentNode.children[1].selected = true;
elem.target.parentNode.parentNode.children[1].children[0].classList.remove('fa-calculator');
elem.target.parentNode.parentNode.children[1].children[0].classList.add('fa-clock-o');
diff --git a/app/templates/workout/create.html b/app/templates/workout/create.html
index 1f6d136..628ef74 100644
--- a/app/templates/workout/create.html
+++ b/app/templates/workout/create.html
@@ -59,7 +59,7 @@
<i class="fa fa-calculator"></i>
</div>
</div>
- {{ entry['units'](class_='input') }}
+ {{ entry['units'](class_='input', placeholder="Reps") }}
</div>
<p class="button is-danger" onclick="handleDel(this)">
<span class="icon is-small">
diff --git a/app/templates/workout/record_select.html b/app/templates/workout/record_select.html
index 3f6bc76..ccc8ea9 100644
--- a/app/templates/workout/record_select.html
+++ b/app/templates/workout/record_select.html
@@ -29,7 +29,7 @@
<div class="card">
<div class="card-content">
<div class="content">
- <p style="text-align: center;">You have no workouts.</p>
+ <p style="text-align: center;">You have no workouts. Why not create one?</p>
<div class="buttons is-centered">
<a class="button is-primary" href="../workout/create">
<span class="icon is-small">