X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Ftr-input-beginning_ending.html;h=7481c9bb6d51f68f3a8a9cd31825864d070fe9fa;hb=b431ece7b4a71aa5771f44393da582692f668817;hp=8a1dd62a998d60b124d489d16b43598954a2fe98;hpb=5e05724a635a22776f1b973f5d7e77989da4e048;p=freeside.git diff --git a/httemplate/elements/tr-input-beginning_ending.html b/httemplate/elements/tr-input-beginning_ending.html index 8a1dd62a9..7481c9bb6 100644 --- a/httemplate/elements/tr-input-beginning_ending.html +++ b/httemplate/elements/tr-input-beginning_ending.html @@ -7,11 +7,11 @@ 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> @@ -54,6 +56,17 @@ my $previous_request_count = ''; 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};