{% extends "brickwork/shell/app.html" %} {% comment %} A site-visit status tracker: where NW-2481 is in its visit flow, what the current step needs, and what has already happened. COPY THIS FILE into your project and edit it. It is not on the template loader path, so you cannot extend it (ADR-056). What your view must supply: steps [{label, status}] where status is "complete" | "current" | "upcoming" visit_facts [{label, value}] for the current-step detail definition table nav_items / nav_active as in app/list.html The headings, badge label and timeline copy below are typed into the template, which is where you change them. HOW THE FLOW WORKS, matching app/wizard.html: brickwork ships the progress indicator and nothing else. There is no client-side visit state machine. Each visit lives at its own URL; your view computes each step's status by comparing its position against the visit's current stage. brickwork does not track it. On Failed: a visit that cannot continue is not an upcoming step tinted red. Surface it with {% templatetag openblock %} include "brickwork/components/_alert.html" {% templatetag closeblock %} variant="danger" whose title and message name the failure in words (for example "Visit NW-2481 failed" / "The site contact was not available and the window has closed."). Keep the stepper showing the last reached step as current or complete; do not invent a fourth stepper status. The commented alert below is the shape to drop in when your view sets that condition. States: see _stepper.html's own header for the progress indicator's states (complete/current/upcoming per step, mode="progress" here); the status badge's own variant; a Failed visit adds the danger alert documented above. Accessibility: inherits shell/app.html's skip link, sidebar/drawer nav and page-header region; the stepper is a native
Priya Raman checked in at 09:42. Expected duration about 90 minutes; the warehouse manager is Jamie Cole.
{% include "brickwork/components/_data_table.html" with table_id="visit-facts" variant="definition" rows=visit_facts %} {% comment %} Simple chronological timeline. No timeline component ships: a native ordered list of events is enough, and it announces position without extra markup. Newest or oldest first is your call; this example is oldest first so it reads as a story. {% endcomment %}