[%# views/entry/module-displaydate.tt Module for display date in the entry form Authors: Afuna Copyright (c) 2014 by Dreamwidth Studios, LLC. This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself. For a copy of the license, please reference 'perldoc perlartistic' or 'perldoc perlgpl'. -%]

[% ".header" | ml %]

[%- form.hidden( name = "trust_datetime" id = "js-trust-datetime" value = displaydate.trust_initial # FIXME: do this in the controller, rather than here? ) -%]
[%- form.textbox( name = "entrytime_date" id = "js-entrytime-date" maxlength = "10" size = "10" default = "$displaydate.year-$displaydate.month-$displaydate.day" autocomplete = "off" ) -%]
[%- INCLUDE "components/icon-button.tt" button = { class = "postfix secondary" id = "js-entrytime-date-button" } icon = "calendar" text = dw.ml('.label.picker.date') -%]
[%- form.textbox( name = "entrytime_time" id = "js-entrytime-time" maxlength = "5" size = "4" default = "$displaydate.hour:$displaydate.minute" autocomplete = "off" ) ~%]
[%- INCLUDE "components/icon-button.tt" button = { class = "postfix secondary" id = "js-entrytime-time-button" } icon = "clock" text = dw.ml('.label.picker.time') -%]
[%- form.checkbox_nested( label = dw.ml( ".label.autoupdate" ) name = "update_displaydate" id = "js-entrytime-autoupdate" default = displaydate_check value = "1" ) -%]
[%- form.checkbox_nested( label = dw.ml(".label.dateoutoforder2" ) name = "entrytime_outoforder" value = "1" ) -%]