Created
April 10, 2014 16:16
-
-
Save tentacode/10398658 to your computer and use it in GitHub Desktop.
Displaying buttons at the end of a form in a Twig form theme for Symfony
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {% block form_rows %} | |
| {% spaceless %} | |
| {% for child in form if child.vars.block_prefixes.1 != 'submit' %} | |
| {{ form_row(child) }} | |
| {% endfor %} | |
| {% for child in form if child.vars.block_prefixes.1 == 'submit' %} | |
| {{ form_row(child) }} | |
| {% endfor %} | |
| {% endspaceless %} | |
| {% endblock form_rows %} | |
| {% form_theme form _self %} | |
| {{ form(form) }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment