mirror of
https://github.com/pretix/pretix.git
synced 2026-08-26 13:14:40 +00:00
Use exclusive checkboxes for addon items with max_count == 1 and !multi_allowed
This commit is contained in:
@@ -333,6 +333,9 @@
|
|||||||
{% elif item.initial %}
|
{% elif item.initial %}
|
||||||
checked="checked"
|
checked="checked"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if c.max_count == 1 %}
|
||||||
|
data-exclusive-prefix="cp_{{ form.pos.pk }}_item_"
|
||||||
|
{% endif %}
|
||||||
name="cp_{{ form.pos.pk }}_item_{{ item.id }}"
|
name="cp_{{ form.pos.pk }}_item_{{ item.id }}"
|
||||||
id="cp_{{ form.pos.pk }}_item_{{ item.id }}"
|
id="cp_{{ form.pos.pk }}_item_{{ item.id }}"
|
||||||
aria-label="{% blocktrans with item=item.name %}Add {{ item }} to cart{% endblocktrans %}"
|
aria-label="{% blocktrans with item=item.name %}Add {{ item }} to cart{% endblocktrans %}"
|
||||||
|
|||||||
Reference in New Issue
Block a user