I'm trying to customize the node/edit and node/add forms for my site and would like to be able to target the workflow_tab_form for styling. Unfortunately, this module strips the fieldset from the default workflow states on the node/edit form. It would be beneficial for customizing the layout and styling of the buttons for users to be able to target a div containing all workflow buttons including the save for later and preview buttons.
Comments
Comment #1
rdeboerGood point! Will do this next time I do some more work on the module.
Comment #2
rdeboerHad a closer look.
When you click the Workflow tab on a node a form with id="workflow-tab-form", which contains the buttons created by the Workflow Extensions module as HTML input elements of type="submit", class="form-submit", id="edit-submit-to-....", where the .... indicates the name of the workflow state that the button transitions to.
There are no other
<input type="submit" class="form-submit" ....>buttons on this form.Doesn't that give you enough to target the buttons via a CSS rule?
For example
For the submit buttons on the Edit tab of a node it's a similar story accept that the buttons are wrapped up inside a form of id="node-form", which has an inner div of class="node-form".
Hope this is useful to you and others reading this issue.
Comment #3
rdeboerNo need to add extra style classes or ids as suggestions above in #2 should do the trick. Let us know if not...