better display/edit of contacts on customer view, RT#16819
[freeside.git] / httemplate / view / cust_main.cgi
index a6c917f..fda4db0 100755 (executable)
@@ -97,6 +97,17 @@ function areyousure(href, message) {
 % $br=1;
   <A HREF="<% $p %>search/cust_event.html?custnum=<% $custnum %>"><% mt('View billing events for this customer') |h %></A>
 % }
+% 
+% my $email_link = ($cust_main->invoicing_list_emailonly) && 
+%   include('/elements/email-link.html',
+%            'table' => 'cust_main', 
+%            'search_hash' => { 'custnum' => $custnum },
+%            'label' => 'Email a notice to this customer',
+% );
+% if ( $email_link and $br ) {
+ | 
+% }
+<% $email_link || '' %>
 
 % if ( $conf->config('cust_main-external_links') ) {
     <% $br++ ? ' | ' : '' %>
@@ -139,6 +150,11 @@ function areyousure(href, message) {
 
   </TD>
 </TR>
+<TR>
+  <TD COLSPAN = 2>
+    <& cust_main/contacts_new.html, $cust_main &>
+  </TD>
+</TR>
 </TABLE>
 
 % }