X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Ftr-input-beginning_ending.html;h=7481c9bb6d51f68f3a8a9cd31825864d070fe9fa;hb=ea3ce8d7f076e7fecff4be7ae63bc413adb0adf5;hp=9c067dbea26ac0109756504ccd25e74522fdddc9;hpb=9509e5bfb7f9331303153cac24d7bfecbe2ea9f1;p=freeside.git diff --git a/httemplate/elements/tr-input-beginning_ending.html b/httemplate/elements/tr-input-beginning_ending.html index 9c067dbea..7481c9bb6 100644 --- a/httemplate/elements/tr-input-beginning_ending.html +++ b/httemplate/elements/tr-input-beginning_ending.html @@ -1,15 +1,17 @@ - - - - +% unless ( $m->count == $previous_request_count ) { + + + + +% } From date: - MAXLENGTH=<%$maxlength%>>
m/d/y<% $time_hint %> + MAXLENGTH=<%$maxlength%>>
m/d/y<% $time_hint %> +% unless ( $datesrequired ) { > (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'; +my $datesrequired = 0; +$datesrequired = $opt{'datesrequired'} if $opt{'datesrequired'}; + +my $from = ''; +$from = $opt{'from'} if $opt{'from'}; +my $to = ''; +$to = $opt{'to'} if $opt{'to'}; + $opt{prefix} = '' unless defined $opt{prefix}; $opt{prefix} .= '_' if $opt{prefix}; @@ -61,3 +81,8 @@ if ( $opt{'input_time'} ) { } +<%cleanup> + +$previous_request_count = $m->count; + +