{% for card in cards %}
Part details
Bill of materials
| Ref | Part | Description | Qty |
|---|---|---|---|
| {% if line.state == 'add' %}+{% elif line.state == 'remove' %}−{% endif %} {% if line.reference_before is not None %}{{ line.reference_before|default:"none" }} → {{ line.reference|default:"none" }}{% else %}{{ line.reference }}{% endif %} | {% if line.part_id %}{{ line.part_number }}{% else %}{{ line.part_number }}{% endif %} | {{ line.name }}{% if line.detail %} {{ line.detail }}{% endif %} |
{% if line.quantity_before is not None %}{{ line.quantity_before }} → {{ line.quantity }}{% else %}{{ line.quantity }}{% endif %} |
{% if card.base_revision %}Nothing differs from rev {{ card.base_revision.revision }}.{% else %}This is the part's first revision, so there is nothing to compare it with.{% endif %}