forked from CGM_Public/pretix_original
Add helpful title text to numeric inputs
This commit is contained in:
committed by
Raphael Michel
parent
23ed381859
commit
532c7fbc8f
@@ -336,7 +336,8 @@
|
|||||||
<label class="item-checkbox-label">
|
<label class="item-checkbox-label">
|
||||||
<input type="checkbox" value="1"
|
<input type="checkbox" value="1"
|
||||||
id="variation_{{ item.id }}_{{ var.id }}"
|
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>
|
</label>
|
||||||
{% else %}
|
{% else %}
|
||||||
<input type="number" class="form-control input-item-count" placeholder="0" min="0"
|
<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 %}
|
pattern="\d*" {% if itemnum == 1 %}value="1"{% endif %}
|
||||||
max="{{ item.order_max }}"
|
max="{{ item.order_max }}"
|
||||||
name="item_{{ item.id }}"
|
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 %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|||||||
@@ -123,7 +123,8 @@
|
|||||||
pattern="\d*"
|
pattern="\d*"
|
||||||
max="{{ item.order_max }}"
|
max="{{ item.order_max }}"
|
||||||
id="variation_{{ item.id }}_{{ var.id }}"
|
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 %}
|
{% else %}
|
||||||
<label>
|
<label>
|
||||||
<input type="radio" name="_voucher_item"
|
<input type="radio" name="_voucher_item"
|
||||||
@@ -199,7 +200,8 @@
|
|||||||
pattern="\d*"
|
pattern="\d*"
|
||||||
max="{{ item.order_max }}"
|
max="{{ item.order_max }}"
|
||||||
id="item_{{ item.id }}"
|
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 %}
|
{% else %}
|
||||||
<label>
|
<label>
|
||||||
<input type="radio" name="_voucher_item"
|
<input type="radio" name="_voucher_item"
|
||||||
|
|||||||
Reference in New Issue
Block a user