{% set errors = errors | default([]) %}
<div class="form-group {{ (errors | length > 0) ? 'has-error': '' }} {{ styleModifier|default('') }}">
<div class="{{ inputWrapperModifier|default('') }}">
{% if label|default(false) %}
{{ include('Form/Includes/form-control-label.html.twig', _context) }}
{% endif %}
<input type="{{ type|default('text') }}"
class="form-control {{ (errors | length > 0 )? 'is-invalid': '' }} {{ inputModifier|default('') }}"
name="{{ name }}"
id="{{ id }}"
placeholder="{{ placeholder|default('') }}"
value="{{ value|default('') }}"
{{ required|default(false) ? 'required' : '' }}
{{ disabled|default(false) ? 'disabled' : '' }}
{{ readonly|default(false) ? 'readonly' : '' }}
{{ helpText | default(null) ? 'aria-describedby="' ~ id ~'-help-block"' : '' }}
{% for key, value in inputAttributes | default([]) %}
{{key}}="{{value}}"
{% endfor %}
>
</div>
{{ include('Form/Includes/form-errors.html.twig', _context) }}
{{ include('Form/Includes/form-control-help-text.html.twig', _context) }}
</div>