{%- set type = (type is defined ? type : 'text') %} {%- set class = [ 'text', (class is defined and class ? class : null), (type is defined and type == 'password' ? 'password' : null), (disabled is defined and disabled ? 'disabled' : null), (size is defined and size ? null : 'fullwidth') ]|filter|join(' ') %} {%- if showCharsLeft is defined and showCharsLeft and maxlength is defined and maxlength %} {%- set style = 'padding-'~(craft.app.locale.getOrientation() == 'ltr' ? 'right' : 'left')~': '~(7.2*maxlength|length+14)~'px;' %} {%- endif %} {%- if type == 'password' %}
{% endif -%} {%- if type == 'password' %}
{% endif %}