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
This commit is contained in:
Richard Schreiber
2023-11-16 12:29:57 +01:00
committed by GitHub
parent 71e515f9c2
commit baf6144ee7
5 changed files with 54 additions and 24 deletions

View File

@@ -368,7 +368,9 @@
{% if user_cancel_allowed %}
<li class="list-group-item">
{% if order.status == "p" and order.total != 0 %}
{% if request.event.settings.cancel_allow_user_paid_require_approval and request.event.settings.cancel_allow_user_paid_require_approval_fee_unknown %}
{% if request.event.settings.cancel_terms_paid %}
{{ request.event.settings.cancel_terms_paid|rich_text }}
{% elif request.event.settings.cancel_allow_user_paid_require_approval and request.event.settings.cancel_allow_user_paid_require_approval_fee_unknown %}
<p>
{% blocktrans trimmed %}
You can request to cancel this order.
@@ -445,35 +447,31 @@
{% trans "This will invalidate all tickets in this order." %}
</p>
{% endif %}
{% else %}
<p>
{% if request.event.settings.cancel_terms_unpaid %}
{{ request.event.settings.cancel_terms_unpaid|rich_text }}
{% elif order.total != 0 and order.user_cancel_fee %}
{% blocktrans trimmed with fee=order.user_cancel_fee|money:request.event.currency %}
You can cancel this order. As per our cancellation policy, you will still be required
to pay a cancellation fee of <strong>{{ fee }}</strong>.
{% endblocktrans %}
{% trans "This will invalidate all tickets in this order." %}
{% else %}
{% blocktrans trimmed %}
You can cancel this order using the following button.
{% endblocktrans %}
{% trans "This will invalidate all tickets in this order." %}
{% endif %}
</p>
{% endif %}
<p>
<a href="{% eventurl event 'presale:event.order.cancel' secret=order.secret order=order.code %}"
class="btn btn-danger">
<span class="fa fa-remove" aria-hidden="true"></span>
{% trans "Cancel order" %}
</a>
</p>
{% else %}
<p>
{% if order.total != 0 and order.user_cancel_fee %}
{% blocktrans trimmed with fee=order.user_cancel_fee|money:request.event.currency %}
You can cancel this order. As per our cancellation policy, you will still be required
to pay a cancellation fee of <strong>{{ fee }}</strong>.
{% endblocktrans %}
{% else %}
{% blocktrans trimmed %}
You can cancel this order using the following button.
{% endblocktrans %}
{% endif %}
{% trans "This will invalidate all tickets in this order." %}
</p>
<p>
<a href="{% eventurl event 'presale:event.order.cancel' secret=order.secret order=order.code %}"
class="btn btn-danger">
<span class="fa fa-remove" aria-hidden="true"></span>
{% trans "Cancel order" %}
</a>
</p>
{% endif %}
</p>
</li>
{% endif %}
</ul>