Order details: Do not show empty cancellation section

This commit is contained in:
Raphael Michel
2019-05-24 13:56:28 +02:00
parent d39964b021
commit e2ce35a85b

View File

@@ -222,7 +222,7 @@
{% endif %} {% endif %}
<div class="clearfix"></div> <div class="clearfix"></div>
</div> </div>
{% if order.cancel_allowed %} {% if order.cancel_allowed and order.user_cancel_allowed %}
<div class="panel panel-primary panel-cancellation"> <div class="panel panel-primary panel-cancellation">
<div class="panel-heading"> <div class="panel-heading">
<h3 class="panel-title"> <h3 class="panel-title">
@@ -230,7 +230,6 @@
</h3> </h3>
</div> </div>
<div class="panel-body"> <div class="panel-body">
{% if order.user_cancel_allowed %}
{% if order.status == "p" and order.total != 0 %} {% if order.status == "p" and order.total != 0 %}
{% if order.user_cancel_fee %} {% if order.user_cancel_fee %}
<p> <p>
@@ -266,13 +265,6 @@
{% trans "Cancel order" %} {% trans "Cancel order" %}
</a> </a>
{% endif %} {% endif %}
{% else %}
<p>
{% blocktrans trimmed %}
You can not cancel this order yourself. Please contact the event organizer for more information.
{% endblocktrans %}
</p>
{% endif %}
</div> </div>
</div> </div>
{% endif %} {% endif %}