diff options
author | Christopher Burger <burgerc@freeside.biz> | 2018-09-04 08:30:35 -0400 |
---|---|---|
committer | Christopher Burger <burgerc@freeside.biz> | 2018-09-04 08:30:35 -0400 |
commit | 8ca45ec1f1ab960ee1e262ee764f05d214728d05 (patch) | |
tree | 38bb540c1140d39395a342722929ad0afca67420 /httemplate/view | |
parent | 5e2b0a5efb81642e86f7704a528767c2ea2961ca (diff) |
RT# 75817 - Added password change link to cust main page
Diffstat (limited to 'httemplate/view')
-rw-r--r-- | httemplate/view/cust_main/contacts_new.html | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/httemplate/view/cust_main/contacts_new.html b/httemplate/view/cust_main/contacts_new.html index fe412cc00..9252b2197 100644 --- a/httemplate/view/cust_main/contacts_new.html +++ b/httemplate/view/cust_main/contacts_new.html @@ -22,6 +22,7 @@ % my $bgcolor1 = '#ffffff'; % my $bgcolor2 = '#eeeeee'; % my $bgcolor = $bgcolor2; +% my $count = 0; % foreach my $cust_contact ( @cust_contacts ) { % my $contact = $cust_contact->contact; % my $td = qq(<TD CLASS="grid" BGCOLOR="$bgcolor">); @@ -39,6 +40,16 @@ Enabled %# <FONT SIZE="-1"><A HREF="XXX">disable</A> %# <A HREF="XXX">re-email</A></FONT> + <FONT SIZE="-1"> + <& /elements/change_password.html, + 'contact_num' => $cust_contact->contactnum, + 'custnum' => $cust_contact->custnum, + 'no_label_display' => '', + 'label' => 'change password', + 'curr_value' => '', + 'pre_pwd_field_label' => 'contact'.$count.'_', + &> + </FONT> % } else { Disabled %# <FONT SIZE="-1"><A HREF="XXX">enable</A></FONT> @@ -63,6 +74,7 @@ % } else { % $bgcolor = $bgcolor1; % } +% $count++; % } </TABLE> %} @@ -80,6 +92,6 @@ my @cust_contacts = $cust_main->cust_contact; # residential customers have a default "invisible" contact, but if they # somehow get more than one contact, show them -my $display = scalar(@cust_contacts) > 1; +my $display = scalar(@cust_contacts) > 0; </%init> |