Files

11 lines
644 B
HTML

{% if entry.order_variants|length > 1 %}
<label for="order-spool-{{ entry.pk }}">Ausführung beim Bestellen</label>
<select id="order-spool-{{ entry.pk }}" name="spool_type{% if bulk %}_{{ entry.pk }}{% endif %}">
{% for variant in entry.order_variants %}
<option value="{{ variant.spool_type }}">{{ variant.get_spool_type_display }}{% if variant.spool_type != entry.requested_spool_type %} · Alternative{% endif %}</option>
{% endfor %}
</select>
{% elif entry.default_order_variant %}
<input type="hidden" name="spool_type{% if bulk %}_{{ entry.pk }}{% endif %}" value="{{ entry.default_order_variant.spool_type }}">
{% endif %}