start_sf5_project/app/templates/beer/_form.html.twig

5 lines
178 B
Twig

{{ form_start(form) }}
{{ form_widget(form) }}
<button class="btn btn-{{ btn_color|default('primary')}}">{{ button_label|default('Save') }}</button>
{{ form_end(form) }}