Fix missing checkbox-button disabled-state

This commit is contained in:
Richard Schreiber
2025-04-23 19:20:46 +02:00
committed by GitHub
parent ec627d6a3c
commit 698f687c54

View File

@@ -205,7 +205,7 @@
{% if var.cached_availability.0 == 100 and not item.current_unavailability_reason and not var.current_unavailability_reason %}
<div class="col-md-2 col-sm-3 col-xs-6 availability-box available">
{% if var.order_max == 1 %}
<label class="btn btn-default btn-checkbox">
<label class="btn btn-default btn-checkbox{% if not ev.presale_is_running %} disabled{% endif %}">
<input type="checkbox" value="1"
{% if item.free_price %}
data-checked-onchange="price-variation-{{ item.pk }}-{{ var.pk }}"
@@ -358,7 +358,7 @@
{% if item.cached_availability.0 == 100 and not item.current_unavailability_reason %}
<div class="col-md-2 col-sm-3 col-xs-6 availability-box available">
{% if item.order_max == 1 %}
<label class="btn btn-default btn-checkbox">
<label class="btn btn-default btn-checkbox{% if not ev.presale_is_running %} disabled{% endif %}">
<input type="checkbox" value="1" {% if itemnum == 1 %}checked{% endif %}
{% if item.free_price %}
data-checked-onchange="price-item-{{ item.pk }}"