{% extends 'includes/form/form-control.html.twig' %}
{% set hiddenInputAttribtes = [ 'name', 'value', 'placeholder' ] %}
{% block input %}
<div class="newsletter-info__form-group">
<div class="input-group">
{# This input contains the formatted date (according to locale) - don't use it in backend #}
<input class="form-control {{ (errors|default([])|length > 0 )? 'is-invalid': '' }} {{ inputModifier|default('') }}"
{% for key, value in inputAttributes|default([]) %}
{{ key }}="{{ value }}"
{% endfor %}
>
</div>
<button class="newsletter-info__submit {{ btnModifier|default('btn btn-secondary') }}">
{{ 'newsletter.register'|trans }}
</button>
</div>
{% endblock %}