X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Ftr-input-beginning_ending.html;h=2aa597479583d5465669ec5d2c113816304d393f;hb=20950bb21ee5dd8839a05dfcd58efa0a98e48e5a;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..2aa597479 100644 --- a/httemplate/elements/tr-input-beginning_ending.html +++ b/httemplate/elements/tr-input-beginning_ending.html @@ -1,39 +1,79 @@ - - - - - +% unless ( $m->count == $previous_request_count ) { + + + + +% } - From: -
m/d/y + From date: + MAXLENGTH=<%$maxlength%>>
m/d/y<% $time_hint %> - +% unless ( $opt{layout} =~ /^h/i ) { #horizontal + + - To: -
m/d/y + +% } + + To date: + MAXLENGTH=<%$maxlength%>>
m/d/y<% $time_hint %> - + > (leave one or both dates blank for an open-ended search) +<%once> + +my $previous_request_count = ''; + + +<%init> + +my %opt = @_; + +my $conf = new FS::Conf; + +my $date_format = $conf->config('date_format') || '%m/%d/%Y'; + +$opt{prefix} = '' unless defined $opt{prefix}; +$opt{prefix} .= '_' if $opt{prefix}; + +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; +} + + +<%cleanup> + +$previous_request_count = $m->count; + +