Improved styling of price inputs

This commit is contained in:
Raphael Michel
2016-03-24 18:07:33 +01:00
parent 112a309a0e
commit 945349ca21
2 changed files with 5 additions and 4 deletions
@@ -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>
+3
View File
@@ -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;
} }