{% extends "labels/base.html" %} {% block style %} @page { size: {{ paper_width }}mm {{ paper_height }}mm; margin: {{page_margin[0]}}mm {{page_margin[1]}}mm {{page_margin[2]}}mm {{page_margin[3]}}mm; } .outbox { margin: {{label_margin[0]}}mm {{label_margin[1]}}mm; display: flex; align-items: center; border: 1.35px solid black; height: {{box_height}}mm; min-width: {{min_label_width}}mm; padding-top: {{padding_top}}mm; padding-right: {{padding_right}}mm; } .outer_most_box { display: flex; line-height: 3.325mm; } .labeltext { position:relative; } .extrabox { position: absolute; top: -1.45mm; right: -0.1mm; display: flex; align-items: center; } .extrabox .qrcode { background-position: right center; flex: 0 0 {{qrcode_width + 1}}mm; } {% endblock %} {% block body %} {%- for object_index in range(object_amount) -%} {%- for label_index in range(num_labels) -%}
{{ object_name_list[object_index] }} • #{{ object_id_list[object_index]}}
{{ username_list[object_index] }} {%- if include_qrcode -%}
{{ creation_date_list[object_index] }} {%- else -%}  • {{ creation_date_list[object_index] }} {%- endif -%}
{%- for hazard_code in hazard_list[object_index] -%}
{%- endfor -%} {%- if include_qrcode -%}
{%- endif -%}
{%- endfor -%} {%- endfor -%} {%- endblock -%}