NAME
Strehler::FormFu::Element::DisplayOrder - FormFu Element for Strehler Display order field.
DESCRIPTION
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.
SYNOPSIS
In article form:
- type: "+Strehler::FormFu::Element::DisplayOrder"
No parameters, no labels.
GENERATED HTML
<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>
YAML CONFIGURATION
For the complete configuration see in the package: forms/admin/elements/display_order.yml