Jul 27 - Update code for scheduled tasks
This commit is contained in:
@@ -263,6 +263,21 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{# ── Instructions from the schedule (phase36) ──
|
||||
Only rendered when this inspection was started from a ScheduledInspection
|
||||
that carries instructions. `scheduled_inspection` is NULL for ad-hoc work
|
||||
and for schedules deleted after the inspection was started, so both the
|
||||
relationship and the text are guarded. #}
|
||||
{% if inspection.scheduled_inspection and inspection.scheduled_inspection.notes %}
|
||||
<div style="background:#eef2ff;border:1px solid #c7d2fe;border-left:4px solid #6366f1;
|
||||
padding:.9rem 1.1rem;margin-top:.85rem;border-radius:8px;">
|
||||
<div class="fw-semibold mb-1" style="color:#3730a3;font-size:.9rem;">
|
||||
<i class="bi bi-info-circle-fill"></i> Instructions for this inspection
|
||||
</div>
|
||||
<div style="white-space:pre-wrap;color:#1e1b4b;font-size:.9rem;">{{ inspection.scheduled_inspection.notes }}</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{# ── Form body ── #}
|
||||
<div class="insp-body">
|
||||
{% if form_fields %}
|
||||
|
||||
Reference in New Issue
Block a user