Jul 30 - Show scheduled inspection creator on list and task details page

This commit is contained in:
2026-07-31 17:06:13 -04:00
parent d424385747
commit 6513e6b4f6
2 changed files with 11 additions and 0 deletions
+6
View File
@@ -537,6 +537,12 @@
<span class="lbl">Frequency</span> <span class="lbl">Frequency</span>
<span class="val">{{ inspection.template.frequency|title }}</span> <span class="val">{{ inspection.template.frequency|title }}</span>
</div> </div>
{% if inspection.scheduled_inspection and inspection.scheduled_inspection.creator %}
<div class="meta-item">
<span class="lbl">Scheduled By</span>
<span class="val">{{ inspection.scheduled_inspection.creator.display_name }}</span>
</div>
{% endif %}
</div> </div>
{# ── Submission GPS (admin / director only) ──────────────────────────── #} {# ── Submission GPS (admin / director only) ──────────────────────────── #}
@@ -33,6 +33,7 @@
<th>Next Due</th> <th>Next Due</th>
<th>Ends</th> <th>Ends</th>
<th>Status</th> <th>Status</th>
<th>Created By</th>
<th class="text-end"></th> <th class="text-end"></th>
</tr> </tr>
</thead> </thead>
@@ -73,6 +74,10 @@
<span class="badge bg-secondary">Inactive</span> <span class="badge bg-secondary">Inactive</span>
{% endif %} {% endif %}
</td> </td>
<td>
{{ s.creator.display_name if s.creator else '—' }}
<div class="small text-muted">{{ s.created_at.strftime('%b %d, %Y') if s.created_at else '' }}</div>
</td>
<td class="text-end text-nowrap"> <td class="text-end text-nowrap">
{# Start is shown only to the assignee — the inspection is theirs to do. #} {# Start is shown only to the assignee — the inspection is theirs to do. #}
{% if s.active and s.inspector_id and s.inspector_id == current_user.id %} {% if s.active and s.inspector_id and s.inspector_id == current_user.id %}