forked from CGM_Public/pretix_original
Do not show +/- icons for cart rows with seats
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -96,3 +96,6 @@
|
||||
.cart-modify {
|
||||
margin-left: 10px;
|
||||
}
|
||||
.btn-invisible {
|
||||
opacity: 0 !important;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user