{% import 'macro/accordion.html' as accordion %} {% import 'macro/badge.html' as badge %} {% import 'macro/card.html' as card %} {% import 'macro/form.html' as form %}
{% if item.fields.name %} {{ item.fields.name }} {% else %} Individual Part Lot {% endif %} {{ item.parts()|length }} parts
{% if not solo %} View {% else %} Back {% endif %}
{{ badge.parts(item.parts()|length, solo=solo, last=false) }} {% for owner in brickset_owners %} {{ badge.owner(item, owner, solo=solo, last=false) }} {% endfor %} {% for tag in brickset_tags %} {{ badge.tag(item, tag, solo=solo, last=false) }} {% endfor %} {{ badge.storage(item, brickset_storages, solo=solo, last=false) }} {{ badge.purchase_date(item.purchase_date_formatted(), solo=solo, last=false) }} {{ badge.purchase_location(item, brickset_purchase_locations, solo=solo, last=false) }} {% if item.fields.purchase_price %} ${{ "%.2f"|format(item.fields.purchase_price) }} {% endif %}
{% if solo %}
{{ accordion.table(item.parts(), 'Parts', 'parts-inventory', 'lot-details', 'part/lot_table.html', icon='shapes-line', hamburger_menu=g.login.is_authenticated())}} {% include 'individual_part/management.html' %} {% if g.login.is_authenticated() %} {{ accordion.header('Danger zone', 'danger-zone', 'lot-details', danger=true, class='text-end') }} Delete entire lot and all parts {{ accordion.footer() }} {% endif %}
{% endif %}
{% if solo and g.login.is_authenticated() %} {% endif %}