stc

a simple time card webapp
git clone _git@git.brennen.work:stc.git
Log | Files | Refs | README

commit 40311fee1c80eb7e98300083480ef826df8c568f
parent bddb8b1397271e961fb23998335391ae56891579
Author: Brennen T. Mazur <brennen@madis.cool>
Date:   Thu, 12 Jan 2023 11:48:29 -0700

added Lunch checkbox to clockin form/activeusers form

Diffstat:
Mtemplates/activeusers/widget.html | 3+++
Mtemplates/punchclock/widget.html | 2++
2 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/templates/activeusers/widget.html b/templates/activeusers/widget.html @@ -6,6 +6,7 @@ <tr><!-- FOR EACH clocked in user iterate user ...does each user need to be its own form? --> <td><input type="button" onclick="alert('route to /changehours<user1>')" value="user1.name"></td> <td><input type="checkbox" name="onCrew" checked><label for="onCrew">On Crew</label></td> + <td><input type="checkbox" name="lunch"><label for="lunch">Lunch</label></td> <td><input type="checkbox" name="perdium"><label for="perdium">Perdium</label></td> <td><input type="button" onclick="alert('route to /changehours<user1>')" value="user1.timeIn"></td> <td><input type="submit" value="Clock Out"></td> @@ -13,6 +14,7 @@ <tr><!-- FOR EACH clocked in user iterate user ...does each user need to be its own form? --> <td><input type="button" onclick="alert('route to /changehours<user2>')" value="user2.name"></td> <td><input type="checkbox" name="onCrew" checked><label for="onCrew">On Crew</label></td> + <td><input type="checkbox" name="lunch"><label for="lunch">Lunch</label></td> <td><input type="checkbox" name="perdium"><label for="perdium">Perdium</label></td> <td><input type="button" onclick="alert('route to /changehours<user2>')" value="user2.timeIn"></td> <td><input type="submit" value="Clock Out"></td> @@ -22,6 +24,7 @@ <tr><!-- clock in clocked out user --> <th><select><option value="user3.name" selected>user3.name</option><option value="user4.name">user4.name</option><option value="user5.name">user5.name</option></select></th> <td><input type="checkbox" name="onCrew" checked><label for="onCrew">On Crew</label></td> + <td><input type="checkbox" name="lunch"><label for="lunch">Lunch</label></td> <td><input type="checkbox" name="perdium"><label for="perdium">Perdium</label></td> <td><input type="time" value="12:12"/></td> <td><input type="submit" value="Clock in New Member"></td> diff --git a/templates/punchclock/widget.html b/templates/punchclock/widget.html @@ -8,6 +8,8 @@ <option value="3">third project</option> </select> <input type="submit" value="Clock In"><!--if user.isClockedIn()returns true value="Clock Out" AND Purdium changes to Lunch checkbox, elseif user.isClockedIn() returns true AND Project Name = isClockedIn().projectname CLOCK OUT and CLOCK IN with new PROJECT NAME --> + <input type="checkbox" name="Lunch" value="lunch"> + <label for="Lunch">Lunch</label> <input type="checkbox" name="Perdium" value="perdium"> <label for="Perdium">Perdium</label> </form>