X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_main-contacts.html;h=76929a7c9bb16f6214a32985e35001ce5f7df379;hb=6a4cb4fdcbd37ff57a99b58d57a7c017d21d3a7f;hp=bae58bd332a686626b8cdec1abf8cea5306d39de;hpb=0456422b9eaf771e8c27cfb4ef4a0dd7e6f926f8;p=freeside.git diff --git a/httemplate/edit/cust_main-contacts.html b/httemplate/edit/cust_main-contacts.html index bae58bd33..76929a7c9 100644 --- a/httemplate/edit/cust_main-contacts.html +++ b/httemplate/edit/cust_main-contacts.html @@ -1,36 +1,45 @@ -<% include('elements/edit.html', - 'name_singular' => 'customer contacts', #yes, we're editing all of them - 'table' => 'cust_main', - 'post_url' => popurl(1). 'process/cust_main-contacts.html', - 'labels' => { 'custnum' => ' ', #XXX supress this line entirely, its being redundant - 'contactnum' => 'Contact', - #'locationnum' => ' ', - }, - 'fields' => [ +<%doc> + +Hmm, this is now entirely redundant with edit/cust_main/contacts_new.html, and +this one isn't being maintained well. :/ + + +<& elements/edit.html, + 'name_singular' => 'customer contacts', #yes, we're editing all of them + 'table' => 'cust_main', + 'post_url' => popurl(1). 'process/cust_main-contacts.html', + 'no_pkey_display' => 1, + 'labels' => { + 'contactnum' => ' ', #'Contact', + #'locationnum' => ' ', + }, + 'fields' => [ { 'field' => 'contactnum', 'type' => 'contact', 'colspan' => 6, + 'custnum' => $custnum, 'm2m_method' => 'cust_contact', 'm2m_dstcol' => 'contactnum', - 'm2_label' => 'Contact', + 'm2_label' => ' ', #'Contact', 'm2_error_callback' => $m2_error_callback, }, ], - #'new_callback' => $new_callback, - #'edit_callback' => $edit_callback, - #'error_callback' => $error_callback, - 'agent_virt' => 1, + #'new_callback' => $new_callback, + #'edit_callback' => $edit_callback, + #'error_callback' => $error_callback, + 'agent_virt' => 1, + 'html_table_class' => 'fsinnerbox', 'menubar' => [], #remove "view all" link #XXX it would be nice if this could instead be after the error but before # the table - 'html_init' => include('/elements/small_custview.html', - $custnum, - $conf->config('countrydefault') || 'US', - 1, #no balance - ), - ) -%> + 'html_init' => include('/elements/small_custview.html', + $custnum, + $conf->config('countrydefault') || 'US', + 1, #no balance + ). + '
', +&> <%init> my $curuser = $FS::CurrentUser::CurrentUser; @@ -75,7 +84,7 @@ my $m2_error_callback = sub { my($cgi, $object) = @_; #process_o2m fields in process/cust_main-contacts.html - my @fields = qw( first last title comment ); + my @fields = FS::contact->cgi_contact_fields; my @gfields = ( '', map "_$_", @fields ); map {