Strehler::FormFu::Element::SubmitBlock - FormFu Element for Strehler submit buttons.
Standard Strehler implementation consider two submit buttons: one that redirect to list at the end of the work (Submit) and one that keep you on the edit page after saving the content (Submit and Continue). All the business logic for that is encapsulated in this FormFu element.
Keep in mind that a simple Submit button created in a stardard way will still work, but always with the behaviour of the Submit button of the SubmitBlock. It's mandatory that the submit button (or the block that contains it) has name "save".
In article form:
- type: "+Strehler::FormFu::Element::SubmitBlock"
No parameters, no labels.
<fieldset> <button value="submit-go" type="submit" name="strehl-action" class="btn btn-primary span3"> Submit </button> <button value="submit-continue" type="submit" name="strehl-action" class="btn btn-info span3"> Submit and Continue </button> </fieldset>
For the complete configuration see in the package: forms/admin/elements/submit_block.yml
To install Strehler, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Strehler
CPAN shell
perl -MCPAN -e shell install Strehler
For more information on module installation, please visit the detailed CPAN module installation guide.