72901: OFM Freeside Note Classes [additional v3 tweaks]
[freeside.git] / httemplate / view / cust_main / notes.html
index 1cd6e09..1692519 100755 (executable)
@@ -27,6 +27,7 @@
 %        ! $conf->exists('cust_main-disable_notes')
 %      ) {
 
+<P>
   <& /elements/popup_link-cust_main.html,
                 'label'       => emt('Add customer note'),
                 'action'      => $p. 'edit/cust_main_note.cgi',
@@ -35,9 +36,9 @@
                 'width'       => 616,
                 'height'      => 538, #575
   &>
+</P>
 
 %   }
-<BR>
 
 % # actually display notes
 <& notes/notes.html, 'cust_main' => $cust_main &>
 % if ( $curuser->access_right('View email logs')
 %      and FS::cust_msg->count("custnum = $custnum")) {
 <BR>
-%   if (!$cgi->param('order_by')) {
-%     my $order_by = '_date';
-%     $order_by .= ' DESC' if $curuser->option('history_order') eq 'newest';
-%     $cgi->param('order_by', $order_by);
-%   }
-<& /search/cust_msg.html,
-  nohtmlheader  => 1,
-  html_init     => mt('Mail sent to this customer: '),
-&>
+<& notes/email.html, 'cust_main' => $cust_main &>
+<BR>
 % }
 <%init>