Use fragment_product_list in voucher redemption view (Z#23246929) (#6567)

* Use fragment_product_list in voucher redemption view (Z#23246929)

* Formatting

* Fix usage in templates

* Review comments

* handle form prefix in fragment_product_list.html

---------

Co-authored-by: Raphael Michel <michel@pretix.eu>
This commit is contained in:
pajowu
2026-09-28 13:01:15 +02:00
committed by GitHub
co-authored by Raphael Michel
parent 7e1e472691
commit 558bf910fd
7 changed files with 139 additions and 418 deletions
@@ -713,7 +713,7 @@ $(function () {
$('[data-checked-onchange]').each(function () {
let countInput = this
$('#' + this.getAttribute('data-checked-onchange')).on('input', function () {
if (countInput.type === 'checkbox') {
if (countInput.type === 'checkbox' || countInput.type == "radio") {
if (countInput.checked) return
countInput.checked = true
} else if (countInput.type === 'number' && !countInput.valueAsNumber) {