mirror of
https://github.com/pretix/pretix.git
synced 2026-05-04 15:04:03 +00:00
Presale: improve clientside handling of max-count for add-on products
* Fix typo in error message * Use exclusive checkboxes for addon items with max_count == 1 and !multi_allowed * combine exclusive items + variations * move exclusive to containing fieldset * fix add-on-exclusive * add max_count check * fix plus/minus-stepper buttons bubbling * Update src/pretix/static/pretixpresale/js/ui/main.js --------- Co-authored-by: Richard Schreiber <schreiber@rami.io>
This commit is contained in:
@@ -203,7 +203,7 @@ error_messages = {
|
||||
'You need to select at least %(min)s add-ons from the category %(cat)s for the product %(base)s.',
|
||||
'min'
|
||||
),
|
||||
'addon_no_multi': gettext_lazy('You can select every add-ons from the category %(cat)s for the product %(base)s at most once.'),
|
||||
'addon_no_multi': gettext_lazy('You can select every add-on from the category %(cat)s for the product %(base)s at most once.'),
|
||||
'addon_only': gettext_lazy('One of the products you selected can only be bought as an add-on to another product.'),
|
||||
'bundled_only': gettext_lazy('One of the products you selected can only be bought part of a bundle.'),
|
||||
'seat_required': gettext_lazy('You need to select a specific seat.'),
|
||||
|
||||
@@ -197,7 +197,7 @@ error_messages = {
|
||||
'You need to select at least %(min)s add-ons from the category %(cat)s for the product %(base)s.',
|
||||
'min'
|
||||
),
|
||||
'addon_no_multi': gettext_lazy('You can select every add-ons from the category %(cat)s for the product %(base)s at most once.'),
|
||||
'addon_no_multi': gettext_lazy('You can select every add-on from the category %(cat)s for the product %(base)s at most once.'),
|
||||
'addon_already_checked_in': gettext_lazy('You cannot remove the position %(addon)s since it has already been checked in.'),
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user