X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fcust_main-contacts.html;h=7c5a78209ce6044857b4bcce7b1a96d30ac96291;hb=0c9c9e95f2f32e7d55dd53f2903c21eb8ce7af6b;hp=cd83a29602ac26b550d4046fdf19a827363bdcd9;hpb=fe4515eb37d76849dd08c62782d86bc7ba311dcd;p=freeside.git diff --git a/httemplate/edit/cust_main-contacts.html b/httemplate/edit/cust_main-contacts.html index cd83a2960..7c5a78209 100644 --- a/httemplate/edit/cust_main-contacts.html +++ b/httemplate/edit/cust_main-contacts.html @@ -1,27 +1,50 @@ +<%doc> + +Hmm, this is now entirely redundant with edit/cust_main/contacts_new.html, and +this one isn't being maintained well. :/ + + + + + +<& '/elements/validate_password_js.html', &> + <& 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' => [ + '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, - 'menubar' => [], #remove "view all" link + #'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 @@ -76,7 +99,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 {