Strehler::FormFu::Element::DisplayOrder - FormFu Element for Strehler Display order field.
A FormFu element to encapsulate all the frontend logic for display order field with "Next!" button. It's just a Fieldset element with a particular configuration file hard-coded in it. Display order field needs to be identified in a clear way and needs a fixed structure because it has to interact with Strehler javascript library.
This element hasn't the standard HTML::FormFu elements namespace because it makes sense only in a Strehler system.
In article form:
- type: "+Strehler::FormFu::Element::DisplayOrder"
No parameters, no labels.
<fieldset class="order-widget"> <div> <label for="order">Order</label> <input type="text" id="order" value="2" name="display_order"> </div> <button type="button" id="last" class="btn btn-warning"> Next! </button> </fieldset>
For the complete configuration see in the package: forms/admin/elements/display_order.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.