Do not show +/- icons for cart rows with seats

This commit is contained in:
Raphael Michel
2019-07-28 16:06:00 +02:00
parent 26726043c2
commit 10aeadf835
2 changed files with 9 additions and 2 deletions

View File

@@ -102,7 +102,11 @@
{% csrf_token %}
<input type="hidden" name="id" value="{{ line.id }}" />
<button class="btn btn-mini btn-link" title="{% trans "Remove one" %}">
<i class="fa fa-minus"></i>
{% if line.seat %}
<i class="fa fa-trash"></i>
{% else %}
<i class="fa fa-minus"></i>
{% endif %}
</button>
</form>
{% endif %}
@@ -125,7 +129,7 @@
<input type="hidden" name="price_{{ line.item.id }}"
value="{% if event.settings.display_net_prices %}{{ line.net_price }}{% else %}{{ line.price }}{% endif %}" />
{% endif %}
<button class="btn btn-mini btn-link" title="{% trans "Add one more" %}" {% if line.seat %}disabled{% endif %}>
<button class="btn btn-mini btn-link {% if line.seat %}btn-invisible{% endif %}" title="{% trans "Add one more" %}" {% if line.seat %}disabled{% endif %}>
<i class="fa fa-plus"></i>
</button>
</form>

View File

@@ -96,3 +96,6 @@
.cart-modify {
margin-left: 10px;
}
.btn-invisible {
opacity: 0 !important;
}