summaryrefslogtreecommitdiff
path: root/httemplate/elements/contact.html
diff options
context:
space:
mode:
authorChristopher Burger <burgerc@freeside.biz>2017-06-29 12:51:25 -0400
committerChristopher Burger <burgerc@freeside.biz>2017-08-18 12:50:13 -0400
commitec479b83db152b2658e99901e03d29d2a458acb9 (patch)
treef4034d84ca435c1f2e3c9ff71f59a5a144156662 /httemplate/elements/contact.html
parente1c33eb543954d13ca0984c2a768fe3d98bbb75a (diff)
RT# 75817 - updated set contact password to use popup window. fixes break in first contact.
Diffstat (limited to 'httemplate/elements/contact.html')
-rw-r--r--httemplate/elements/contact.html26
1 files changed, 16 insertions, 10 deletions
diff --git a/httemplate/elements/contact.html b/httemplate/elements/contact.html
index 779905234..755daed24 100644
--- a/httemplate/elements/contact.html
+++ b/httemplate/elements/contact.html
@@ -72,18 +72,20 @@
<FONT SIZE="-1"><% $label{$field} %></FONT>
</TD>
% }
-% my $pwd_change_label = 'change password';
-% $pwd_change_label = 'setup password' unless $contact->_password;
+% 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) {
<TD>
- <span STYLE="white-space: nowrap">
- <& /elements/change_password.html,
- 'contact_num' => $curr_value,
- 'custnum' => $opt{'custnum'},
- 'curr_value' => '',
- 'label' => $pwd_change_label,
- &>
- </span>
+ <% include('/elements/popup_link.html',
+ 'action' => $action,
+ 'width' => '763',
+ 'height' => '408',
+ 'actionlabel' => "$pwd_change_label password",
+ 'html_label' => "$pwd_change_label password",
+
+ )
+ %>
<br>
<FONT SIZE="-1">Password</FONT>
</TD>
@@ -97,6 +99,10 @@
my( %opt ) = @_;
my $conf = new FS::Conf;
+
+use Data::Dumper;
+print Dumper($conf->config);
+
my $self_base_url = $conf->config('selfservice_server-base_url');
my $name = $opt{'element_name'} || $opt{'field'} || 'contactnum';