Add helpful title text to numeric inputs

This commit is contained in:
Tobias Kunze
2018-08-07 14:28:11 +02:00
committed by Raphael Michel
parent 23ed381859
commit 532c7fbc8f
2 changed files with 8 additions and 4 deletions

View File

@@ -336,7 +336,8 @@
<label class="item-checkbox-label">
<input type="checkbox" value="1"
id="variation_{{ item.id }}_{{ var.id }}"
name="variation_{{ item.id }}_{{ var.id }}">
name="variation_{{ item.id }}_{{ var.id }}"
title="{% blocktrans with item=item.name var=var.name %}Amount of {{ item }} {{ var }} to order{% endblocktrans %}">
</label>
{% else %}
<input type="number" class="form-control input-item-count" placeholder="0" min="0"
@@ -442,7 +443,8 @@
pattern="\d*" {% if itemnum == 1 %}value="1"{% endif %}
max="{{ item.order_max }}"
name="item_{{ item.id }}"
id="item_{{ item.id }}">
id="item_{{ item.id }}"
title="{% blocktrans with item=item.name %}Amount of {{ item }} to order{% endblocktrans %}">
{% endif %}
</div>
{% else %}

View File

@@ -123,7 +123,8 @@
pattern="\d*"
max="{{ item.order_max }}"
id="variation_{{ item.id }}_{{ var.id }}"
name="variation_{{ item.id }}_{{ var.id }}">
name="variation_{{ item.id }}_{{ var.id }}"
title="{% blocktrans with item=item.name var=var.name %}Amount of {{ item }} {{ var }} to order{% endblocktrans %}">
{% else %}
<label>
<input type="radio" name="_voucher_item"
@@ -199,7 +200,8 @@
pattern="\d*"
max="{{ item.order_max }}"
id="item_{{ item.id }}"
name="item_{{ item.id }}">
name="item_{{ item.id }}"
title="{% blocktrans with item=item.name %}Amount of {{ item }} to order{% endblocktrans %}">
{% else %}
<label>
<input type="radio" name="_voucher_item"