{# inventree-label-part-29mm.html #} {% extends "label/label_base.html" %} {% load l10n i18n barcode report part_templates %} {% block style %} .label { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt; width: 100%; height: 26mm; line-height: 1.1; } .qr { display: block; height: 15mm; width: 15mm; position: fixed; left: 0mm; top: 0mm; } .right-section { display: block; overflow: hidden; position: absolute; height: 14mm; left: 16mm; top: 0mm; width: 38mm; border-bottom: 0.5pt solid black; } .ipn { display: inline-block; padding: 0 2pt; border: 0.5pt solid black; border-radius: 2pt; font-weight: bold; } .name { padding-top: 0.5mm; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; } .category { font-style: italic; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; } .bottom-section { position: fixed; display: block; width: 100%; height: 10.5mm; top: 15.5mm; overflow: hidden; left: 0mm; } .description { position: absolute; bottom: 0; left: 0; right: 0; font-weight: bold; word-wrap: break-word; overflow-wrap: break-word; } .error { font-family: Arial, Helvetica, sans-serif; font-size: 10pt; color: red; } {% endblock style %} {% block content %} {% if not part_templates %}
Plugin inventree-part-templates required
{% elif part_templates.error %}
{{ part_templates.error }}
{% else %}
{% trans 'QR Code' %}
{% if part.IPN %}
{{ part.IPN }}
{% endif %}
{{ part.name|scrub:"MPN" }}
{{ part_templates.category }}
{{ part_templates.description }}
{% endif %} {% endblock content %}