-
Notifications
You must be signed in to change notification settings - Fork 0
/
form-field-text.html
35 lines (35 loc) · 1.61 KB
/
form-field-text.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-text> -->
<label
{% include patterns/form-field-auto-save-attributes %}
class="
{{ include.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/form-field-label-conditional.html %}
<input
{% if include.required == true %}required="required"{% endif %}
{% if include.state == 'disabled' %}disabled{% endif %}
{% if include.size %}size="{{ include.chars }}"{% endif %}
{% if include.placeholder %}
placeholder="
{%- if include.placeholder contains 'label_' -%}
{%- include patterns/i18n id=include.placeholder -%}
{%- else -%}
{{- include.placeholder -}}
{%- endif -%}"
{% endif %}
class="{% if include.autofocus %}pat-autofocus{% endif %}"
{% if include.maxlength %}maxlength="{{ include.maxlength }}"{% endif %}
type="text"
name="{{ include.name }}"
value="{{ include.value }}"
/>
{% include patterns/form-has-changes.html %}
{% if include.help %}
{% include patterns/form-help.html
content=include.help more=include.help_more %}
{% endif %}
{% include patterns/form-message.html message=include.message %}
</label>
<!-- </pat-form-field-text> -->