SonataAdminBundle icon indicating copy to clipboard operation
SonataAdminBundle copied to clipboard

Use twig blocks for form rendering

Open core23 opened this issue 8 years ago • 1 comments

We should replace all <form> elements in the twig templates with the twig function form_start and form_end. We should also move the action and method (POST, GET) attribute to the PHP files.

This would decouples the business logic from the layout.

Todo

The following files contains form elements.

  • [ ] https://github.com/sonata-project/SonataAdminBundle/blob/4.x/src/Resources/views/standard_layout.html.twig
  • [ ] https://github.com/sonata-project/SonataAdminBundle/blob/4.x/src/Resources/views/CRUD/base_acl_macro.html.twig
  • [ ] https://github.com/sonata-project/SonataAdminBundle/blob/4.x/src/Resources/views/CRUD/base_edit_form.html.twig
  • [ ] https://github.com/sonata-project/SonataAdminBundle/blob/4.x/src/Resources/views/CRUD/base_list.html.twig
  • [ ] https://github.com/sonata-project/SonataAdminBundle/blob/4.x/src/Resources/views/CRUD/batch_confirmation.html.twig
  • [ ] https://github.com/sonata-project/SonataAdminBundle/blob/4.x/src/Resources/views/CRUD/delete.html.twig

core23 avatar Aug 08 '16 15:08 core23

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Jul 26 '20 09:07 github-actions[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Mar 22 '24 15:03 github-actions[bot]