Add cancel_allow_user_paid_adjust_fees_explanation

This commit is contained in:
Martin Gross
2020-04-08 16:43:29 +02:00
parent 3607d8706d
commit 2b1123b487
5 changed files with 38 additions and 2 deletions

View File

@@ -572,6 +572,7 @@ class CancelSettingsForm(SettingsForm):
'cancel_allow_user_paid_keep_fees',
'cancel_allow_user_paid_keep_percentage',
'cancel_allow_user_paid_adjust_fees',
'cancel_allow_user_paid_adjust_fees_explanation',
'cancel_allow_user_paid_refund_as_giftcard',
'cancel_allow_user_paid_require_approval',
]

View File

@@ -20,7 +20,21 @@
{% bootstrap_field form.cancel_allow_user_paid_keep_percentage layout="control" %}
{% bootstrap_field form.cancel_allow_user_paid_keep_fees layout="control" %}
{% bootstrap_field form.cancel_allow_user_paid_until layout="control" %}
{% bootstrap_field form.cancel_allow_user_paid_adjust_fees layout="control" %}
<div class="form-group">
<div class="col-md-9 col-md-offset-3">
<div class="checkbox">
<label data-toggle="collapse" data-target="#cancel_allow_user_paid_adjust_fees_explanation">
{{ form.cancel_allow_user_paid_adjust_fees }} {{ form.cancel_allow_user_paid_adjust_fees.label }}
</label>
</div>
<div class="help-block">
{{ form.cancel_allow_user_paid_adjust_fees.help_text }}
</div>
</div>
</div>
<div id="cancel_allow_user_paid_adjust_fees_explanation" class="panel-body panel-collapse collapse {% if form.cancel_allow_user_paid_adjust_fees.value %} in {% else %} out {% endif %}">
{% bootstrap_field form.cancel_allow_user_paid_adjust_fees_explanation layout="control" %}
</div>
{% bootstrap_field form.cancel_allow_user_paid_refund_as_giftcard layout="control" %}
{% if not gets_notification %}
<div class="alert alert-warning">