stray closing /TABLE in the no-ticket case
[freeside.git] / httemplate / elements / quotations.html
index 0cf1500..0c4dcdc 100644 (file)
@@ -1,13 +1,14 @@
 % if ( $curuser->access_right('Generate quotation') ) { 
 
   <FONT CLASS="fsinnerbox-title"><% mt( 'Quotations' ) |h %></FONT>
-  <A HREF="<%$p%>edit/quotation.html?<% $new_query %>">New quotation</A>
+  <A HREF="<%$p%>edit/quotation.html?<% $new_query %>">Create new quotation</A>
 
 % if ( @quotations ) {
     <& /elements/table-grid.html &>
 %     my $bgcolor1 = '#eeeeee';
 %     my $bgcolor2 = '#ffffff';
 %     my $bgcolor = '';
+      <THEAD>
       <TR>
         <TH CLASS="grid" BGCOLOR="#cccccc">#</TH>
         <TH CLASS="grid" BGCOLOR="#cccccc"><% mt('Date') |h %></TH>
@@ -15,6 +16,7 @@
         <TH CLASS="grid" BGCOLOR="#cccccc"><% mt('Recurring') |h %></TH>
         <TH CLASS="grid" BGCOLOR="#cccccc"></TH>
       </TR>
+      </THEAD>
 %     foreach my $quotation (@quotations) {
 %       if ( $bgcolor eq $bgcolor1 ) {
 %         $bgcolor = $bgcolor2;
@@ -55,7 +57,7 @@ if ( $opt{cust_main} ) {
   $new_query = 'custnum='. $opt{cust_main}->custnum;
   @quotations = $opt{cust_main}->quotation;
 } elsif ( $opt{prospect_main} ) {
-  $new_query = 'quotationnum='. $opt{prospect_main}->quotationnum;
+  $new_query = 'prospectnum='. $opt{prospect_main}->prospectnum;
   @quotations = $opt{prospect_main}->quotation;
 } else {
   die 'guru meditation #&&: neither cust_main nor prospect_main specified';