Answer the question
In order to leave comments, you need to log in
How to nest a tag in a symfony form field?
there is a submit field made in the form class
->add('save', SubmitType::class,[
'attr' => [
'class' => 'btn-success btn-anim'
]
]);
{{ form_row(form.save) }}
. <button type="submit" class="btn btn-success btn-anim"><i class="icon-rocket"></i><span class="btn-text">submit</span></button>
Answer the question
In order to leave comments, you need to log in
Override form theme for widget _{form_name}_save_widget
https://symfony.com/doc/current/form/form_customiz...
I often read that many do according to the scheme as suggested by BoShurik
{{ form_start(form) }}
{#{ form_widget(form) }#}
{{ form_errors(form) }}
{{ form_row(form.name) }}
{{ form_row(form.slug) }}
<button type="submit" class="btn btn-success btn-anim"><i class="icon-rocket"></i><span class="btn-text">submit</span></button>
{{ form_end(form) }}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question