X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Ftr-input-beginning_ending.html;h=a8ab6ed10d8d170d3cfc16c59280c470fcf9bf78;hb=3758ad3cb13752bbbebb2c42fcc398bdb1ffdc6a;hp=9fa936bca3f68271dae7c040422b7dc3c6da7e6f;hpb=386ec52836abbe32ce2fbf575e851a75f6e112f8;p=freeside.git diff --git a/httemplate/elements/tr-input-beginning_ending.html b/httemplate/elements/tr-input-beginning_ending.html index 9fa936bca..a8ab6ed10 100644 --- a/httemplate/elements/tr-input-beginning_ending.html +++ b/httemplate/elements/tr-input-beginning_ending.html @@ -6,26 +6,28 @@ From: -
m/d/y + MAXLENGTH=<%$maxlength%>>
m/d/y<% $time_hint %> To: -
m/d/y + MAXLENGTH=<%$maxlength%>>
m/d/y<% $time_hint %> @@ -37,3 +39,15 @@ +<%init> +my %opt = @_; +my( $input_time, $time_format, $time_hint ) = ( '', '', '' ); +my( $size, $maxlength ) = ( 11, 10 ); +if ( $opt{'input_time'} ) { + $input_time = ', showsTime: true, timeFormat: "12"'; # http://www.dynarch.com/demos/jscalendar/doc/html/reference.html#node_sec_2.3 + $time_format = ' %k:%M:%S'; # http://www.dynarch.com/demos/jscalendar/doc/html/reference.html#node_sec_5.3.5 + $time_hint = ' h:m:s'; + $size = 21; + $maxlength = 27; +} +