diff --git a/core/__pycache__/views.cpython-311.pyc b/core/__pycache__/views.cpython-311.pyc index 39f3760..366ef82 100644 Binary files a/core/__pycache__/views.cpython-311.pyc and b/core/__pycache__/views.cpython-311.pyc differ diff --git a/core/templates/core/manage_resources.html b/core/templates/core/manage_resources.html index b79cd4c..025f0c5 100644 --- a/core/templates/core/manage_resources.html +++ b/core/templates/core/manage_resources.html @@ -49,14 +49,22 @@
View and filter historical daily work logs.
+Filter and review historical daily work logs.
| Date | -Project | -Supervisor | -Labourers | -Notes | -Action | -
|---|---|---|---|---|---|
| {{ log.date }} | -{{ log.project.name }} | -{{ log.supervisor.username|default:"System" }} | -- - {{ log.workers.count }} Workers - - | -{{ log.notes|truncatechars:30 }} | -- Edit - | -
| Date | +Project | +Labourers | +Status / Payslip | +Supervisor | +Action | +
|---|---|---|---|---|---|
| + {{ log.date|date:"D, d M Y" }} + | ++ + {{ log.project.name }} + + | +
+ {% if selected_worker %}
+
+ {% for w in log.workers.all %}
+ {% if w.id == selected_worker %}
+ {{ w.name }}
+ {% endif %}
+ {% endfor %}
+
+ {% if log.workers.count > 1 %}
+ (+{{ log.workers.count|add:"-1" }} others)
+ {% endif %}
+ {% else %}
+
+ {% for w in log.workers.all|slice:":3" %}
+ {{ w.name|truncatechars:12 }}
+ {% endfor %}
+ {% if log.workers.count > 3 %}
+ +{{ log.workers.count|add:"-3" }}
+ {% endif %}
+
+ {% endif %}
+ |
+ + {% with payslip=log.paid_in.first %} + {% if payslip %} + + + Paid (Slip #{{ payslip.id }}) + + + {% else %} + + Pending + + {% endif %} + {% endwith %} + | ++ {{ log.supervisor.username|default:"System" }} + | +
+
+
+
+
+ |
+
Try adjusting your filters or record a new entry.
+ Log Attendance +No work logs recorded yet.
- Log First Attendance -