Commit Graph
845 Commits
Author SHA1 Message Date
Mira WellerandRaphael Michel 2d5d27e950 forms: fix image file upload in CachedFileField 2024-02-21 14:32:23 +01:00
Mira WellerandRaphael Michel c6fa19d771 forms: fix bound data retrieval of CachedFile
when re-submitting a form a second time, the cached file got lost
2024-02-21 14:32:23 +01:00
Mira WellerandRaphael Michel 3129253eef forms: fix file type validation on CachedFileInput 2024-02-21 14:32:23 +01:00
Raphael MichelandGitHub 63894ca3da Update django-bootstrap3 requirement from ==23.1.* to ==23.6 (#3894)
* Update django-bootstrap3 requirement from ==23.1.* to ==23.6

 Removing our previous workarounds

* Fix import
2024-02-14 14:35:45 +01:00
Phin WolkwitzandGitHub e261ce7554 Fix key error on copy_from (PRETIXEU-9NR) (#3868) 2024-02-08 17:34:24 +01:00
Phin WolkwitzandGitHub 39f9329207 Quota form: Change item selection field per context (#3839)
* Change item checkbox select to multiselect widget

* Make item selection widget dependent on count

* Make item selection widget dependent on variable

* Adjust widget choices

* Fix widget choices

* Fix item variation key errors

* Simplify code

* Fix classname

* Improve argument name

* Fix widget name
2024-02-08 09:33:39 +01:00
Raphael Michel 70d32ea1aa Voucher form: Add quota in help text 2024-02-07 09:59:32 +01:00
22f91f7aa2 Improve UI to configure unavailable items handling (Z#23131828) (#3739)
* start impl of unavailability modes ui

* add db migration

* use new widget for more fields

* improve contrast

* use new widget for hide_without_voucher field

* improved wording

* rebase migration

* undo changes to require_membership_hidden

* code formatting

* move unavail_reason logic around

* enforce consistent state of hide_without_voucher / require_voucher

* annotate unavailability info in get_grouped_items

* remove MSIE6 compat

* add unavailability reasons to widget

* remove test output

* Apply suggestions from code review

text improvements

Co-authored-by: Richard Schreiber <schreiber@rami.io>

* add css fix for jumping items due to tooltip

* dynamically retrieve unavailability reason message

* widget: simplify logic conditions

* add available_{from,until}_mode to api and api docs

* rebase migration

* rebase migration

* add unavailable_*_mode to ItemVariation

* add available_*_mode to API docs for items

* fix wrong reference

* fix test cases

* add available_*_mode to item variation form

* apply unavailability modes to subevents and variations (presale)

* /o\

* apply unavailability modes to subevents and variations (widget)

* display unavailability mode in subevent product settings

* fix widget test

* fix api item tests

* copy available_*_mode when copying an item

* Apply suggestions from code review

Co-authored-by: Raphael Michel <michel@rami.io>

* Add unavail mode indicator to bulk create and edit forms

---------

Co-authored-by: Richard Schreiber <schreiber@rami.io>
Co-authored-by: Raphael Michel <michel@rami.io>
2024-02-06 12:27:19 +01:00
bac673f3ab Allow template syntax in event text (Z#23140046) (#3815)
* remove duplicate context generation

* allow text templates in frontpage_text

* refactor: move placeholder functionality to separate file

* fix wrong class name, code style

* update year in license header

* undo license header update

* use new function name

* render only the placeholders that are actually used in the message

* refactoring

* add str(...) call

* Update doc/development/api/placeholder.rst

Co-authored-by: Raphael Michel <michel@rami.io>

* rename register_mail_placeholders to register_template_placeholders
(deprecate old name)

* isort

* add signals to docs

---------

Co-authored-by: Raphael Michel <michel@rami.io>
2024-02-06 11:32:03 +01:00
Raphael MichelandGitHub eaae7e9ea2 Allow to set amount and date when manually confirming a payment (#3828)
* Allow to set amount and date when manually confirming a payment

* Fix tests
2024-01-26 19:22:15 +01:00
Richard SchreiberandGitHub 18e1e7716c Fix: remove duplicate repeat rule in subevent bulk creation (#3819) 2024-01-19 16:25:38 +01:00
Raphael Michel 081d3a73fa Fix crash in item form validation 2024-01-19 15:40:22 +01:00
Raphael Michel bae1512235 Extended order search: Allow to search by quota 2024-01-12 15:55:34 +01:00
Raphael Michel 24dd065839 Revert "Order overview PDF: Allow to filter by subevent date"
This reverts commit 08f0150177.
2024-01-12 15:54:59 +01:00
Raphael Michel 08f0150177 Order overview PDF: Allow to filter by subevent date 2024-01-12 15:53:38 +01:00
Raphael Michel 5b5e831e37 Order search: Add filter for pending without payment 2024-01-09 16:17:46 +01:00
Raphael Michel d5f2f0e3af Item editor: Make dynamic validity more self-explanatory 2024-01-03 10:51:27 +01:00
Raphael Michel 301d9de18e Order email form: Fix missing placeholder validation 2024-01-03 10:19:06 +01:00
Richard SchreiberandGitHub 608d82ce4f A11y: add date and time labels in MultiWidget (Z#23132744) (#3718)
* A11y: add date and time labels in MultiWidget

* fix code style issues
2023-12-20 09:10:59 +01:00
Raphael Michel 40cdb0c507 Fix favicon loading 2023-12-08 15:48:57 +01:00
Raphael Michel 2acf043872 Subevent bulk creation: Add validate_min 2023-12-06 15:51:44 +01:00
Raphael Michel 82704b60c7 Voucher form: Fix quota check for partially redeemed vouchers 2023-11-29 16:09:04 +01:00
Raphael MichelandGitHub 8a3b313cb6 Check-in: Show more information (#3576)
* Check-in: Show more information

* Add change notes

* Rebase migration

* Add "expand" option to checkinrpc

* REmove accidental file

* Docs fixes

* REbase migration

* Rebase migration

* Fix typo

* REbase migration

* Make web-checkin look more like new android checkin
2023-11-28 14:52:12 +01:00
Richard SchreiberandGitHub baf6144ee7 Add customizable terms of cancellation (Z#23135646) (#3704)
* Order: show user_cancel_deadline

* move to own parapgraph

* Remove date, add free text input for terms
2023-11-16 12:29:57 +01:00
Raphael MichelandGitHub d7aa94d6ae Add public filters based on meta data (#3673)
* Add public filters based on meta data

* Fix licenseheaders

* ignore empty values

* Fix tests

* Full non-widget implementation

* Widget support

* Add a few tests

* Allow to reorder properties

* Fix isort

* Allow to opt-out for specific events

* Fix name clash between new and old field to make migration feasible
2023-11-10 12:10:01 +01:00
Raphael Michel 5800babdab Event list: Add date filter 2023-11-07 09:40:39 +01:00
3af2342d7b Replace Item.hidden_if_available with relationship to other Item (#3686)
* draft

* Implementation that is closer to old one

* Fix tests

* Add tests

* Update src/pretix/control/forms/item.py

Co-authored-by: Richard Schreiber <schreiber@rami.io>

* Review notes

---------

Co-authored-by: Richard Schreiber <schreiber@rami.io>
2023-11-06 13:26:32 +01:00
Raphael MichelandGitHub 000c64755d Free price: Allow to suggest a different price than the minimum (#3666)
* Free price: Allow to suggest a different price than the minimum

* Full implementation

* Widget tests

* Add min values to titles
2023-10-27 13:36:01 +02:00
Raphael Michel 8d2791b32e Fix crash in event creation form (PRETIXEU-97T) 2023-10-27 10:43:46 +02:00
Raphael Michel 18159a1b77 Webhooks: Use better event selection widget 2023-10-26 10:41:29 +02:00
Raphael Michel 053cfdf3a9 Gift cards: Allow to sort by most recent transaction 2023-10-24 11:18:55 +02:00
Raphael Michel 7f6365cc81 Add new check-in list flags to backend 2023-10-23 17:26:42 +02:00
Raphael MichelandGitHub a0831890ad Check-in: New flags for check-in lists (#3577) 2023-10-23 15:52:06 +02:00
Raphael Michel 158d480bb3 Fix typo in error message 2023-10-18 10:57:31 +02:00
Martin GrossandGitHub ae445c1460 Move apple-developer-merchantid-domain-association into setting (#3611) 2023-10-05 16:07:11 +02:00
Richard SchreiberandGitHub ca79436e36 Vouchers: fix code min-length check on bulk creation 2023-09-26 09:15:23 +02:00
Richard Schreiber d7d419c826 Remove empty optgroups from language selector widget 2023-09-21 15:41:31 +02:00
39a0eaff3e Add language translation score to selector widget (#3603)
Co-authored-by: Richard Schreiber <schreiber@rami.io>
2023-09-20 16:02:18 +02:00
Richard SchreiberandGitHub af3100a354 E-mail content: insert placeholder into text on click 2023-09-14 10:32:22 +02:00
Raphael Michel 160e0e0531 Email settings: Fix wrong placeholder configuration 2023-09-12 16:58:41 +02:00
Raphael Michel 7545e92373 [SECURITY] Do not allow Pillow to parse EPS files 2023-09-12 11:50:01 +02:00
Raphael MichelandGitHub eb04fdf4d2 Check-in rules: New variables (#3521) 2023-09-12 09:43:57 +02:00
Raphael MichelandGitHub c0031e4579 Add bulk operations for orders (#3548)
* Add bulk operations for orders

* UI tweaks

* Fix test failures

* Fix filter form

* Add tests

* Run isort
2023-09-06 17:02:21 +02:00
Raphael MichelandGitHub ce73d4831e Allow to sort the list of check-in lists (Z#23128978) (#3568) 2023-09-06 13:23:54 +02:00
Raphael MichelandGitHub 6a36efd18c Invoice settings: Reorder and explain recommended options (#3572) 2023-09-05 16:42:16 +02:00
5b184bb1a0 Fix leaflet osm tile suggestion (#3549)
Co-authored-by: Raphael Michel <michel@rami.io>
2023-08-30 09:53:41 +02:00
Raphael MichelandGitHub 5d90a42acf Discounts: Allow "buy X to get Y" with different product sets for X and Y (#3543) 2023-08-28 16:21:52 +02:00
MiraandGitHub 38173e3a54 Tax rules: add custom rules for country subdivision (e.g. state) (Z#23111850) (#3520) 2023-08-24 14:11:10 +02:00
Raphael Michel f017de1a21 Voucher bulk creation: Fix validation issue 2023-08-23 12:18:30 +02:00
Raphael Michel e94e5be878 Item creation: Fix bug in copying meta data 2023-08-22 11:32:43 +02:00