-
Notifications
You must be signed in to change notification settings - Fork 0
/
form-field-currency.html
36 lines (33 loc) · 1.46 KB
/
form-field-currency.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<label
{% include patterns/form-field-auto-save-attributes %}
class="
{% include patterns/form-field-auto-save-classes %}
{% if item.depends %}pat-depends{% endif %}"
{% if item.id %}id="{{ item.id }}"{% endif %}
{% if item.depends %}data-pat-depends="{{ item.depends }}; transition: slide"{% endif %}>
{% include patterns/form-field-label-conditional.html %}
<span
class="
composed
currency-field">
<abbr title="Euro" class="currency">{{ item.symbol | default: '€' }}</abbr>
<input
{% if item.required == true %}required="required"{% endif %}
{% if item.state == 'disabled' %}disabled{% endif %}
{% if item.step %}step="{{ item.step }}"{% endif %}
{% if item.min %}min="{{ item.min }}"{% endif %}
{% if item.max %}max="{{ item.max }}"{% endif %}
type="number"
size="{{ item.chars }}"
name="{{ item.name }}"
id="{{ item.id }}"
placeholder="{{ site.data[ui_data_path].ui[item.placeholder][site.data.config.lang] }}"
value="{{ site.data[ui_data_path].ui[item.value][site.data.config.lang] }}" />
</span>
{% if item.help %}
{% include patterns/form-help.html
content=item.help more=item.help_more %}
{% endif %}
{% include patterns/form-has-changes.html %}
</label>
{% include patterns/form-message.html message=item.message %}