mirror of
https://github.com/pretix/pretix.git
synced 2026-09-13 16:14:40 +00:00
Improved styling of price inputs
This commit is contained in:
@@ -102,7 +102,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-md-2 col-xs-6 price">
|
<div class="col-md-2 col-xs-6 price">
|
||||||
{% if item.free_price %}
|
{% if item.free_price %}
|
||||||
<div class="input-group">
|
<div class="input-group input-group-price">
|
||||||
<span class="input-group-addon">{{ event.currency }}</span>
|
<span class="input-group-addon">{{ event.currency }}</span>
|
||||||
<input type="number" class="form-control input-item-price"
|
<input type="number" class="form-control input-item-price"
|
||||||
placeholder="0"
|
placeholder="0"
|
||||||
@@ -114,7 +114,6 @@
|
|||||||
{{ event.currency }} {{ var.price|floatformat:2 }}
|
{{ event.currency }} {{ var.price|floatformat:2 }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if item.tax_rate %}
|
{% if item.tax_rate %}
|
||||||
<br/>
|
|
||||||
<small>{% blocktrans trimmed with rate=item.tax_rate %}
|
<small>{% blocktrans trimmed with rate=item.tax_rate %}
|
||||||
incl. {{ rate }}% taxes
|
incl. {{ rate }}% taxes
|
||||||
{% endblocktrans %}</small>
|
{% endblocktrans %}</small>
|
||||||
@@ -154,7 +153,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-md-2 col-xs-6 price">
|
<div class="col-md-2 col-xs-6 price">
|
||||||
{% if item.free_price %}
|
{% if item.free_price %}
|
||||||
<div class="input-group">
|
<div class="input-group input-group-price">
|
||||||
<span class="input-group-addon">{{ event.currency }}</span>
|
<span class="input-group-addon">{{ event.currency }}</span>
|
||||||
<input type="number" class="form-control input-item-price" placeholder="0"
|
<input type="number" class="form-control input-item-price" placeholder="0"
|
||||||
min="{{ item.price|stringformat:"0.2f" }}"
|
min="{{ item.price|stringformat:"0.2f" }}"
|
||||||
@@ -165,7 +164,6 @@
|
|||||||
{{ event.currency }} {{ item.price|floatformat:2 }}
|
{{ event.currency }} {{ item.price|floatformat:2 }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if item.tax_rate %}
|
{% if item.tax_rate %}
|
||||||
<br/>
|
|
||||||
<small>{% blocktrans trimmed with rate=item.tax_rate %}
|
<small>{% blocktrans trimmed with rate=item.tax_rate %}
|
||||||
incl. {{ rate }}% taxes
|
incl. {{ rate }}% taxes
|
||||||
{% endblocktrans %}</small>
|
{% endblocktrans %}</small>
|
||||||
|
|||||||
@@ -10,6 +10,9 @@
|
|||||||
.input-item-count {
|
.input-item-count {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
.input-group-price {
|
||||||
|
margin-bottom: 3px;
|
||||||
|
}
|
||||||
.input-item-price {
|
.input-item-price {
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user