Project detail: Recent Work Logs rows open payroll modal (admin only)
Admins see cursor:pointer + data-log-id on each row. Click opens the shared modal from base.html. Supervisors unchanged. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
b06c1a4949
commit
6f4748f4ab
@ -164,7 +164,7 @@
|
|||||||
<thead><tr><th>Date</th><th>Team</th><th class="text-end">Workers</th></tr></thead>
|
<thead><tr><th>Date</th><th>Team</th><th class="text-end">Workers</th></tr></thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{% for log in recent_logs %}
|
{% for log in recent_logs %}
|
||||||
<tr>
|
<tr {% if user.is_staff or user.is_superuser %}class="work-log-row" data-log-id="{{ log.id }}" style="cursor: pointer;"{% endif %}>
|
||||||
<td>{{ log.date|date:"d M Y" }}</td>
|
<td>{{ log.date|date:"d M Y" }}</td>
|
||||||
<td>{{ log.team.name|default:'—' }}</td>
|
<td>{{ log.team.name|default:'—' }}</td>
|
||||||
<td class="text-end">{{ log.workers.count }}</td>
|
<td class="text-end">{{ log.workers.count }}</td>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user