<div class="row{{ errors[name] ? ' errorWrap' : '' }}">
    <label for="{{ id }}">
        {{ label|raw }}
        {% if required %}
            <span class="formRequired">*</span>
        {% endif %}
    </label>

    <div class="inputWrap">
        <select name="{{ name }}"
                id="{{ id }}"
                class="{{ class ?: 'text' }}">
            <option value="">{{ default_option_label }}</option>
            {% for key, entry in values %}
                <option value="{{ key }}" {{ key == value ? 'selected' : '' }}>
                    {{ entry }}
                </option>
            {% endfor %}
        </select>
        {% if errors[name] %}
            <div class="validationMessage">
                {% if errors[name] is iterable  %}
                    {% for error in errors[name] %}
                        <span>{{ error|raw }}</span>
                    {% endfor %}
                {% else %}
                    <span>{{ errors[name]|raw }}</span>
                {% endif %}
            </div>
        {% endif %}
    </div>
</div>
