diff --git a/app/templates/admin/labels/print.html b/app/templates/admin/labels/print.html new file mode 100644 index 0000000..c731220 --- /dev/null +++ b/app/templates/admin/labels/print.html @@ -0,0 +1,234 @@ + + + + + +Parts labels - {{ layout.preset.name }} + + + + + + + + + + +
+
+
+
+
+
{{ layout.total_labels }} labels on {{ layout.pages|length }} sheet{{ '' if layout.pages|length == 1 else 's' }}
+
{{ layout.preset.name }}{% if layout.preset.note %} — {{ layout.preset.note }}{% endif %}
+
+
+ + {% if pdf_available %} + + {% endif %} + Back +
+
+ +
+ Before you burn a sheet of Averys: in the print dialog set margins to + None and scale to 100% (not "Fit to page"). Tick "Outline each label", + print one on plain paper, hold it against the sheet, then nudge the offsets below. +
+ +
+ + +
+ + +
+
+ + +
+
+ + +
+
+ + +
+ +
+ + +
+
+ + +
+
+ + +
+
+
+ + +
+
+ +
+ +
+ {% for value, text in field_options %} +
+ + +
+ {% endfor %} +
+
+ +
+ +
+
+
+
+
+ + +{% for cells in layout.pages %} +
+ {% for cell in cells %} + {% set label = cell.label %} +
+ {% if 'accent' in layout.fields and label.category %} +
+ {% endif %} + + {% if 'image' in layout.fields and label.get_image() and layout.options.image_percent %} +
+ {% endif %} + +
+ {% if 'name' in layout.fields %} +
{{ label.display_title if 'dimensions' in layout.fields else label.name }}
+ {% elif 'dimensions' in layout.fields %} +
{{ label.dimensions or '' }}
+ {% endif %} + + {% if 'colour' in layout.fields and label.colour_name %} +
{{ label.colour_name }}
+ {% endif %} + + {% if 'category' in layout.fields and label.category %} +
{{ label.category.full_name }}
+ {% endif %} + + {% set meta = [] %} + {% if 'part_number' in layout.fields and label.part_number %}{% set _ = meta.append(label.part_number) %}{% endif %} + {% if 'alt_numbers' in layout.fields and label.alt_part_numbers %}{% set _ = meta.append(label.alt_part_numbers) %}{% endif %} + {% if 'category_code' in layout.fields and label.category and label.category.display_code %}{% set _ = meta.append(label.category.display_code) %}{% endif %} + {% if meta %} +
{{ meta|join(' ยท ') }}
+ {% endif %} + + {% if 'location' in layout.fields and label.location %} +
{{ label.location }}
+ {% endif %} +
+
+ {% endfor %} +
+{% endfor %} + +
+ Created by: Jess Rogerson (yelling commands at Claude.AI) +
+ + +