From 4b14772bc37d57482f9d1da6581329a8fbdc4cc7 Mon Sep 17 00:00:00 2001 From: FivePixels Date: Wed, 4 May 2022 16:10:08 -0500 Subject: Add time units (seconds) to input placeholder, on record_select update no workouts message --- app/static/js/create.js | 2 +- app/templates/workout/create.html | 2 +- app/templates/workout/record_select.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'app') 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 @@ - {{ entry['units'](class_='input') }} + {{ entry['units'](class_='input', placeholder="Reps") }}

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 @@

-

You have no workouts.

+

You have no workouts. Why not create one?