X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fchange_password.html;h=7d95e19dcf65313a5401b6d8aa415cfb973a8694;hb=2554b11e48a7ec4567bf89f9a48f7a83ec925eea;hp=b3a432f95f8b50083150dd1e6be861d3c193bfb6;hpb=2eefefbe2f93bd6f306c7f73443028dbfd70782e;p=freeside.git diff --git a/httemplate/elements/change_password.html b/httemplate/elements/change_password.html index b3a432f95..7d95e19dc 100644 --- a/httemplate/elements/change_password.html +++ b/httemplate/elements/change_password.html @@ -8,60 +8,88 @@ display: none; } +% if (!$opt{'no_label_display'}) { (<% emt( $change_title ) %>) +% }
-
+% if (!$opt{'noformtag'}) { + +% } + <% $change_id_input %> - - <& /elements/random_pass.html, $pre.'password', 'randomize' &> - - + + <& /elements/random_pass.html, $pre.'password', 'randomize', $change_button_id &> +% if (!$opt{'noformtag'}) { + +% } else { + +%} + +
<& '/elements/validate_password.html', 'fieldid' => $pre.'password', 'svcnum' => $svcnum, - 'contactnum' => $contactnum, + 'contactnum' => $opt{'contact_num'}, + 'submitid' => $change_button_id, &> -% if ( $error ) { -
<% $error |h %> -% } + +% if (!$opt{'noformtag'}) {
+% } +
<%init> my %opt = @_; -my $contactnum = $opt{'contact_num'}; my $curr_value = $opt{'curr_value'} || ''; my $change_title = $opt{'label'} || 'change'; - my $svcnum; my $change_id_input = ''; my $pre = 'changepw'; if ($opt{'svc_acct'}) { my $svc_acct = $opt{'svc_acct'}; - $change_id_input = ''; + $change_id_input = ''; $pre .= $svc_acct->svcnum . '_'; $svcnum = $svc_acct->svcnum; } elsif ($opt{'contact_num'}) { $change_id_input = ' - - + + '; - $pre .= $opt{'contact_num'} . '_'; + $pre .= $opt{'pre_pwd_field_label'}; } +my $change_button_id = $pre.'change_button'; + my $error = $cgi->param($pre.'error');