-
Notifications
You must be signed in to change notification settings - Fork 0
/
form-field-number.html
35 lines (30 loc) · 1.48 KB
/
form-field-number.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
<!-- <pat-form-field-number> -->
<label
{% include patterns/form-field-auto-save-attributes %}
class="
{% include patterns/form-field-auto-save-classes %}
{% if include.depends %}pat-depends{% endif %}"
{% if include.depends %}data-pat-depends="{{ include.depends }}; transition: slide"{% endif %}>
{% include patterns/i18n id=include.label %}{% include patterns/form-required.html %}
<input
{% if include.required == true %}required="required"{% endif %}
{% if include.state == 'disabled' %}disabled{% endif %}
class="{% if include.autofocus %}pat-autofocus{% endif %}"
{% if include.step %}step="{{ include.step }}"{% endif %}
{% if include.min %}min="{{ include.min }}"{% endif %}
{% if include.max %}max="{{ include.max }}"{% endif %}
{% if include.class %}class="{{ include.class }}"{% endif %}
type="number"
size="{{ include.chars }}"
name="{{ include.name }}"
id="{{ include.id }}"
placeholder="{% include patterns/i18n
id=include.placeholder %}"
value="{{ site.data[ui_data_path].ui[include.value][site.data.config.lang] }}" />
{% if include.help %}
{% include patterns/form-help.html
content=include.help more=include.help_more %}
{% endif %}
{% include patterns/form-has-changes.html %}
</label>
<!-- </pat-form-field-number> -->