{% import 'macro/badge.html' as badge %} {% import 'macro/card.html' as card %} {% import 'macro/form.html' as form %}
{{ card.header(item, item.fields.name, solo=false, identifier=item.fields.figure, icon='user-line') }} {{ card.image(item, solo=false, last=false, caption=item.fields.name, alt=item.fields.figure, medium=false) }}
{{ badge.quantity(item.fields.quantity, solo=false, last=false) }} {{ badge.parts(item.fields.number_of_parts, solo=false, last=false) }} {{ badge.total_missing(item.fields.total_missing, solo=false, last=false) }} {{ badge.total_damaged(item.fields.total_damaged, solo=false, last=false) }} {% for owner in brickset_owners %} {{ badge.owner(item, owner, solo=false, last=false) }} {% endfor %} {% for tag in brickset_tags %} {{ badge.tag(item, tag, solo=false, last=false) }} {% endfor %} {% if item.fields.storage %} {{ badge.storage(item, brickset_storages, solo=false, last=false) }} {% endif %} {% if item.fields.purchase_location %} {{ badge.purchase_location(item, brickset_purchase_locations, solo=false, last=false) }} {% endif %} {% if item.fields.description %} {{ item.fields.description[:config['DESCRIPTION_BADGE_MAX_LENGTH']] }}{% if item.fields.description | length > config['DESCRIPTION_BADGE_MAX_LENGTH'] %}...{% endif %} {% endif %}
{% if brickset_statuses | length %} {% endif %}