I'm trying to customize a theme form submit button but this button is being rendered two times. The first time when the block is overriden and the second time when i'm using it in my form.
Here is the code and the result.
Thanks a lot.
{# src/YagoQuinoy/Simple/BlogBundle/Resources/views/Blog/searchArtciles.html.twig #}
{% form_theme form _self %}
{% block submit_widget %}
<button><i class="fa fa-bicycle"></i></button>
{% endblock submit_widget %}
{{ form_start(form, {'attr': {'novalidate': 'novalidate'}}) }}
{{ form_errors(form.search) }}
{{ form_widget(form.search) }}
{{ form_widget(form.submit, {'attr': {'class': 'e-search-articles-submit'}}) }}
{{ form_end(form) }}
Link to the image (don't have 10 reputation ¬¬) Double rendered button image