{% load qr_code %} Labels
{% for label in labels %}
{{ label.lot_number_display }}
{% if 'qr_code' in label.auction.label_print_fields %}
{% qr_from_text label.qr_code size=4 border="1" %}
{% endif %} {% for field in label.first_column_fields %}
{{ field }}
{% endfor %}
{% if 'lot_name' in label.auction.label_print_fields %} {{ label.lot_name }}
{% endif %} {% if 'custom_field_1' in label.auction.label_print_fields and label.custom_field_1 %} {{ label.custom_field_1 }}
{% endif %} {% if 'category' in label.auction.label_print_fields %} {% if label.category %}{{ label.category }}
{% endif %} {% endif %} {% if label.second_column_fields %} {% for field in label.second_column_fields %} {{ field }} {% endfor %}
{% endif %} {% if label.sold %} Winner: {{ label.winner_name }}
{% if label.auction.multi_location %} {{ label.winner_location }}
{% endif %} {% else %} {% if 'seller_name' in label.auction.label_print_fields %} Seller: {{ label.seller_name }} {% endif %} {% if 'seller_email' in label.auction.label_print_fields %} {{ label.seller_email }} {% endif %} {% if 'seller_name' in label.auction.label_print_fields or 'seller_email' in label.auction.label_print_fields %}
{% endif %} {% endif %} {% if 'description_label' in label.auction.label_print_fields %} {{ label.description_label | safe}} {% endif %}
{% if forloop.counter|divisibleby:labels_per_page %}
{% endif %} {% endfor %}