summaryrefslogtreecommitdiff
path: root/httemplate/elements/contact.html
diff options
context:
space:
mode:
authorChristopher Burger <burgerc@freeside.biz>2017-06-20 09:04:14 -0400
committerChristopher Burger <burgerc@freeside.biz>2017-06-21 15:59:35 -0400
commitb4d7dc9ec38daec3ee96d32287f701ed719b5eba (patch)
treef1a390efedb68b82b38a8f1f643fa134682a5200 /httemplate/elements/contact.html
parent94cda7ff5fd7fe41d9d0b14d544cb85fbff55dc0 (diff)
RT# 75817 - Added the ability to set contacts password on the backend
Diffstat (limited to 'httemplate/elements/contact.html')
-rw-r--r--httemplate/elements/contact.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/httemplate/elements/contact.html b/httemplate/elements/contact.html
index b0a7caca1..8936569ce 100644
--- a/httemplate/elements/contact.html
+++ b/httemplate/elements/contact.html
@@ -85,6 +85,22 @@
<FONT SIZE="-1"><% $label{$field} %></FONT>
</TD>
% }
+% my $pwd_change_label = 'change password';
+% $pwd_change_label = 'setup password' unless $contact->_password;
+% if ($curr_value) {
+ <TD>
+ <span STYLE="white-space: nowrap">
+ <& /elements/change_password.html,
+ 'contact_num' => $curr_value,
+ 'custnum' => $opt{'custnum'},
+ 'curr_value' => '',
+ 'label' => $pwd_change_label,
+ &>
+ </span>
+ <br>
+ <FONT SIZE="-1">Password</FONT>
+ </TD>
+% }
</TR>
</TABLE>