Strehler::FormFu::Element::PublishDate - FormFu Element for Strehler publish date field.
A FormFu element to encapsulate all the frontend logic for publish date field. It's just a text element with html attributes, inflator and deflator hard-coded in it. Publish date field needs to be identified in a clear way and needs a fixed structure because it has to interact with bootstrap datepicker.
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::PublishDate"
No parameters, no labels.
<div> <label for="date_of_pub">Date</label> <input type="text" id="date_of_pub" name="publish_date"> </div>
- id: date_of_pub name: publish_date label: Date inflators: - type: DateTime parser: strptime: "%d/%m/%Y" deflator: - type: Strftime strftime: "%d/%m/%Y"
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.