{% extends "base.html" %} {% block title %}Tape Printing - Admin{% endblock %} {% block extra_css %} {% endblock %} {% block content %}
{% set section = 'labels' %} {% set bar_sub = 'Brother VC-500W continuous tape' %} {% set crumbs = [{'name': 'My Labels', 'url': url_for('labels.index')}, {'name': 'Tape printing'}] %} {% include 'admin/labels/_nav.html' %}
{# Always submitted, so an unticked checkbox can be told apart from a page opened with no options at all. Without it, a default-on checkbox could never be turned off. #} {# Which parts share a physical label: "1,2|3". Rewritten by the Combine and Split buttons under the preview. Empty means "group by drawer". #}
Label size
{% if options.is_fixed %}
Labels are {{ label_width_mm|int }}mm wide and lie across the tape, so each one only uses its height in tape length.
Two part types in one drawer become a single 40 × 20mm label. Matched on the drawer / location field.
{% endif %}
Tape & layout
{{ tape.note }}
{% for preset, text in [(1.0, 'Normal'), (1.5, 'Large'), (2.0, 'Huge'), (3.0, 'Max')] %} {% endfor %}
The part name is sized first and the image gives way to it, so turning this up shrinks the picture rather than clipping the text. The whole name always prints - it wraps and settles at the largest size that fits, so a long name stops growing before a short one does. Untick Part image for the biggest type of all.
{% if not options.is_fixed %}
{% endif %}

{% if not options.is_fixed %}
If your print comes out sideways, untick this. To make the change permanent, set it in Settings.
{% else %} {# Fixed sizes always lie across the tape, so there is nothing to choose - carry the value through so the form round-trips. #} {% endif %}
Show on label
{% for value, text in field_options %} {% endfor %}
Printer {% if printer.host %} {{ printer.host }}:{{ printer.port }} {% else %} Not configured {% endif %}
{% if printer.host %}
Jobs are sent one at a time: LIM waits for the printer to finish each label before sending the next, because the VC-500W answers "busy" to anything that arrives mid-print. So a big run takes a while - leave the page alone until it comes back rather than refreshing, or you'll print twice.
{% else %}

No tape printer address set yet. Put the VC-500W's IP address into Label Settings and it can be printed to directly over the network.

{% endif %}
Preview — {{ plan|length }} label{{ '' if plan|length == 1 else 's' }} from {{ labels|length }} part{{ '' if labels|length == 1 else 's' }}
{% if not options.fields %}
Nothing selected Every field is unticked, so the labels will print blank. Tick something under Show on label.
{% endif %} {% if options.is_fixed and not tape_fits %}
Tape too narrow A {{ label_width_mm|int }}mm label needs 50mm tape. {{ tape.name }} is {{ tape.printable_mm }}mm printable, so labels will be scaled down. Load 50mm tape, or pick a different size.
{% endif %}
Tick labels, then:
For customs and MOC drawers, where the parts have no drawer in common. A combined label grows 5mm for each part past the second, and hand-made groups are kept whatever the size setting says.
{% for item in plan[:12] %}
{{ item.labels | map(attribute='display_title') | join(' + ') }} {% if item.width_mm %}
{{ item.width_mm|int }} × {{ item.height_mm|int }}mm {%- if item.labels|length > 1 %} · {{ item.labels|length }} parts in {{ item.drawer or 'one drawer' }} {%- elif item.drawer %} · {{ item.drawer }}{% endif %}
{% endif %}
{% endfor %}
{% if plan|length > 12 %}
Showing the first 12 of {{ plan|length }}. All of them print.
{% endif %}
313 dpi on {{ tape.tape_mm }}mm tape ({{ tape.printable_mm }}mm printable). {% if options.is_fixed %} Labels lie across the tape, so this run uses about {{ (tape_used_mm / 10)|round(1) }}cm of tape ({{ options.copies }} cop{{ 'y' if options.copies == 1 else 'ies' }} each). {% else %} Preview shown flat; the job is rotated if "Rotate for tape feed" is ticked. {% endif %}
{% endblock %} {% block extra_js %} {% endblock %}