{# inventree-label-part-smdbox.html #} {% extends "label/label_base.html" %} {% load l10n i18n barcode report part_templates %} {% block style %} .label { font-family: Verdana, Arial, Helvetica, sans-serif; width: 100%; position: absolute; height: 18mm; width: 21mm; border-bottom: 0.5pt solid black; font-size: 6pt; line-height: 1.1; } .qr { display: block; height: 7mm; width: 7mm; position: fixed; left: 0mm; top: 0mm; } .right-section { display: block; position: absolute; height: 7mm; width: 8mm; left: 7.25mm; top: 0mm; } .bottom-section { position: fixed; display: block; width: 100%; height: 16mm; top: 7mm; left: 0mm; } .name { padding-top: 0.1mm; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; } .category { font-style: italic; word-wrap: break-word; overflow-wrap: break-word; } .description { word-wrap: break-word; overflow-wrap: break-word; font-weight: bold; border-TOP: 0.5pt solid black; padding-top: 0.5mm; margin-top: 0.5mm; } .error { font-family: Arial, Helvetica, sans-serif; font-size: 8pt; color: red; word-wrap: break-word; overflow-wrap: break-word; } {% endblock style %} {% block content %} {% if not part_templates %}
Plugin inventree-part-templates required
{% elif part_templates.error %}
{{ part_templates.error }}
{% else %}
{% trans 'QR Code' %}
{{ part_templates.short_cat }}
{{ part.name|scrub:"MPN" }}
{{ part_templates.short_desc }}
{% endif %} {% endblock content %}