Allow to hide cancellation fee from end-user in approval flow (#2735)

Co-authored-by: Richard Schreiber <wiffbi@gmail.com>
This commit is contained in:
Raphael Michel
2022-07-25 18:58:25 +02:00
committed by GitHub
parent c90cb1f19c
commit 94900cd386
6 changed files with 55 additions and 7 deletions

View File

@@ -674,6 +674,7 @@ class CancelSettingsForm(SettingsForm):
'cancel_allow_user_paid_adjust_fees_step',
'cancel_allow_user_paid_refund_as_giftcard',
'cancel_allow_user_paid_require_approval',
'cancel_allow_user_paid_require_approval_fee_unknown',
'change_allow_user_variation',
'change_allow_user_price',
'change_allow_user_until',

View File

@@ -16,6 +16,9 @@
<legend>{% trans "Paid orders" %}</legend>
{% bootstrap_field form.cancel_allow_user_paid layout="control" %}
{% bootstrap_field form.cancel_allow_user_paid_require_approval layout="control" %}
<div data-display-dependency="#id_cancel_allow_user_paid_require_approval">
{% bootstrap_field form.cancel_allow_user_paid_require_approval_fee_unknown layout="control" %}
</div>
{% bootstrap_field form.cancel_allow_user_paid_keep layout="control" %}
{% bootstrap_field form.cancel_allow_user_paid_keep_percentage layout="control" %}
{% bootstrap_field form.cancel_allow_user_paid_keep_fees layout="control" %}