commit 2d4f653c946a423726ec8057f894bf6886386640
parent 683b0b841b19c5f20259f14672556c750999b6e9
Author: Brennen T. Mazur <brennen@madis.cool>
Date: Thu, 9 Mar 2023 14:09:40 -0700
display clocked in users and time entries
Diffstat:
2 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/app/templates/dashboard/activeusers/widget.html b/app/templates/dashboard/activeusers/widget.html
@@ -1,5 +1,8 @@
<section class="activeusers">
<h3>Clocked in Crew List</h3>
+ {% for user in clocked_in_users %}
+ {%- print(user.modified_by.0) %}
+ {% endfor %}
<form>
<input type="submit" value="Clock Crew Out">
<table><!-- replace w/ function getUserHours(username) -->
diff --git a/app/templates/dashboard/punchclock/index.html b/app/templates/dashboard/punchclock/index.html
@@ -9,6 +9,11 @@
<div><!-- abstract to payPeriod() -->
<h6>$payperiod range</h6>
</div>
+ {% for entry in hours %} <!-- for hours, print either form w/ entry data, or <a href="url_for('houredit',entry=[entry._id])>-->
+ {%- print(entry) %}
+ </br>
+ </br>
+ {% endfor %}
<form action="" method="post" novalidate>
<input type="submit" value="Request Changes">
<input type="reset">