Problem/Motivation
The EntityCloneForm displays submit buttons for 'Clone' and 'Abort', but these buttons are not wrapped in an actions wrapper. Form actions are always rendered at the button of a form. Admin themes can implement styling for these actions.
An actions wrapper also makes it easier to add elements to the form through hook_form_alter() since you do not have to add a #weight property to make sure the elements are rendered before the submit buttons.
Proposed resolution
Implement form actions wrapper for consistent theming and improved form_alter'ing.
Remaining tasks
- Write a patch
- Review
- Commit
User interface changes
The Clone-button is rendered as a primary submit button.
API changes
None.
Data model changes
None.
Comments
Comment #2
idebr commentedAttached patch implements a form actions wrapper for consistent theming and improved form_alter'ing.
Before
After
Comment #4
vpeltot commentedCommited. Thanks!