{% import '_macros.html' as m %} {{ m.header(d) }} {{ m.title_block(d) }} {{ m.meta_grid([ {'label':'Issued','value':d.date}, {'label':'Scheduled','value':d.scheduled}, {'label':'Technician','value':d.technician}, {'label':'Priority','value':d.priority}, ]) }}
{% if d.customer %}{{ m.party('Customer', d.customer) }}{% endif %} {% if d.site %}{{ m.party('Service Location', d.site) }}{% endif %}
{% if d.status %}
{{ d.status }}
{% endif %} {% if d.work_items %}
Work to be Performed
{% for it in d.work_items %}
{{ it }}
{% endfor %}
{% endif %} {% for s in d.sections %}{{ m.section(s) }}{% endfor %} {% if d.parts %}
Parts & Materials
Qty
Item
Notes
{% for p in d.parts %}
{{ p.qty }}
{{ p.item }}
{{ p.notes or '' }}
{% endfor %}
{% endif %} {{ m.note(d.note) }} {{ m.signatures(d.signatures or [ {'role':'Technician','who':d.technician or ''}, {'role':'Customer Acceptance','who':(d.customer.name if d.customer else '')}, ]) }}