projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RT# 75817 - Added password change link to cust main page
[freeside.git]
/
httemplate
/
elements
/
change_password.html
diff --git
a/httemplate/elements/change_password.html
b/httemplate/elements/change_password.html
index
7d95e19
..
65b7d85
100644
(file)
--- a/
httemplate/elements/change_password.html
+++ b/
httemplate/elements/change_password.html
@@
-11,9
+11,9
@@
% if (!$opt{'no_label_display'}) {
<A ID="<%$pre%>link" HREF="javascript:void(0)" onclick="<%$pre%>toggle(true)">(<% emt( $change_title ) %>)</A>
% }
% if (!$opt{'no_label_display'}) {
<A ID="<%$pre%>link" HREF="javascript:void(0)" onclick="<%$pre%>toggle(true)">(<% emt( $change_title ) %>)</A>
% }
-<DIV ID="<%$pre%>
form
" CLASS="passwordbox">
+<DIV ID="<%$pre%>
div
" CLASS="passwordbox">
% if (!$opt{'noformtag'}) {
% if (!$opt{'noformtag'}) {
- <FORM
METHOD="POST" ACTION="<%$fsurl%>misc/process/change-password.html" onsubmit="return
checkPasswordValidation()">
+ <FORM
ID="<%$pre%>form" METHOD="POST" ACTION="<%$fsurl%>misc/process/change-password.html" onsubmit="return <%$pre%>
checkPasswordValidation()">
% }
<% $change_id_input %>
% }
<% $change_id_input %>
@@
-44,11
+44,8
@@
function <%$pre%>toggle(toggle, clear) {
if (clear) {
document.getElementById('<%$pre%>password').value = '';
document.getElementById('<%$pre%>password_result').innerHTML = '';
if (clear) {
document.getElementById('<%$pre%>password').value = '';
document.getElementById('<%$pre%>password_result').innerHTML = '';
-% if ($opt{'contact_num'}) {
- document.getElementById('<% $opt{'pre_pwd_field_label'} %>selfservice_access').value = 'Y';
-% }
}
}
- document.getElementById('<%$pre%>
form
').style.display =
+ document.getElementById('<%$pre%>
div
').style.display =
toggle ? 'inline-block' : 'none';
% if (!$opt{'no_label_display'}) {
document.getElementById('<%$pre%>link').style.display =
toggle ? 'inline-block' : 'none';
% if (!$opt{'no_label_display'}) {
document.getElementById('<%$pre%>link').style.display =
@@
-56,7
+53,7
@@
function <%$pre%>toggle(toggle, clear) {
% }
}
% }
}
-function
checkPasswordValidation(
) {
+function
<%$pre%>checkPasswordValidation(resultId
) {
var validationResult = document.getElementById('<%$pre%>password_result').innerHTML;
if (validationResult.match(/Password valid!/)) {
return true;
var validationResult = document.getElementById('<%$pre%>password_result').innerHTML;
if (validationResult.match(/Password valid!/)) {
return true;
@@
-83,8
+80,8
@@
if ($opt{'svc_acct'}) {
}
elsif ($opt{'contact_num'}) {
$change_id_input = '
}
elsif ($opt{'contact_num'}) {
$change_id_input = '
- <INPUT TYPE="hidden" NAME="
'.$opt{'pre_pwd_field_label'}.'
contactnum" VALUE="' . $opt{'contact_num'} . '">
- <INPUT TYPE="hidden" NAME="
'.$opt{'pre_pwd_field_label'}.'
custnum" VALUE="' . $opt{'custnum'} . '">
+ <INPUT TYPE="hidden" NAME="contactnum" VALUE="' . $opt{'contact_num'} . '">
+ <INPUT TYPE="hidden" NAME="custnum" VALUE="' . $opt{'custnum'} . '">
';
$pre .= $opt{'pre_pwd_field_label'};
}
';
$pre .= $opt{'pre_pwd_field_label'};
}