X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fcontact.html;h=072270ea85b2f51cae695beb2fdf8007768d8a83;hb=e773f2d834f6757e7a0430184d9db6939e0b632d;hp=87e15debe0f3002248e5946bb31d40c692957a29;hpb=6b1a8c7316892165fa4dc8b66bb962bf113aa3d8;p=freeside.git diff --git a/httemplate/elements/contact.html b/httemplate/elements/contact.html index 87e15debe..072270ea8 100644 --- a/httemplate/elements/contact.html +++ b/httemplate/elements/contact.html @@ -40,7 +40,9 @@ % } % } elsif ( $field eq 'emailaddress' ) { % $value = join(', ', map $_->emailaddress, $contact->contact_email); -% } elsif ( $field eq 'selfservice_access' || $field eq 'comment' ) { +% } elsif ( $field eq 'selfservice_access' +% or $field eq 'comment' +% or $field eq 'invoice_dest' ) { % $value = $X_contact->get($field); % } else { % $value = $contact->get($field); @@ -59,13 +61,22 @@ % } % } - +% } elsif ( $field eq 'invoice_dest' ) { +% my $curr_value = $cgi->param($name . '_' . $field); +% $curr_value = $value if !defined($curr_value); + <& select.html, + field => $name . '_' . $field, + curr_value => $curr_value, + options => [ '', 'Y' ], + option_labels => { '' => 'no', 'Y' => 'yes' }, + style => 'width: 100%', + &> % } else { > @@ -74,6 +85,24 @@ <% $label{$field} %> % } +% my $pwd_change_label = 'change'; +% $pwd_change_label = 'setup' unless $contact->_password; +% my $action = $fsurl . "edit/cust_main-contacts-password.html?custnum=" . $opt{'custnum'} . "&contactnum=" . $curr_value . "&label=" . $pwd_change_label . "&popup=1"; +% if ($curr_value) { +