[% # Form with a date field page.title = 'Enter a date'; WRAPPER form_wrapper submit_label = 'See your date'; PROCESS dates; END; %] [% BLOCK dates %]
Dates [% field('Date', 'date', 'try "today" or "March 10" or "last Tuesday in April"' ); IF form.field('date').value; "Date = "; form.field('date').value.strftime('%c') | html; '
'; END; %]
Dates and Time Widgets [% field( 'Day of month', 'day' ); field( 'Month', 'month' ); field( 'Month', 'mname' ); field( 'Year', 'year' ); field( 'Hour', 'hour' ); field( 'Minute', 'minute' ); field( 'Second', 'sec' ); field( 'Weekday' 'weekday' ); field( 'Pick days', 'days' ); %]
[% END %]