X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Felements%2Fchange_password.html;h=068d7d73ce129058577d5c4bdd8d7154f4e00088;hp=a8cc883b9eb5276bd2e35690752b44a34ee22afb;hb=37e92c220a54636ebc7900cd59ec6ce56790ede8;hpb=9d6c810bf70d12221ff3b7916b717a6f0c924a1c diff --git a/httemplate/elements/change_password.html b/httemplate/elements/change_password.html index a8cc883b9..068d7d73c 100644 --- a/httemplate/elements/change_password.html +++ b/httemplate/elements/change_password.html @@ -8,55 +8,74 @@ display: none; } +% if (!$opt{'no_label_display'}) { (<% emt( $change_title ) %>) -
-
- <% $change_id_input %> - - <& /elements/random_pass.html, $pre.'password', 'randomize' &> - -% if ($opt{'popup'}) { - % } -% else { - +
+% if (!$opt{'noformtag'}) { + +% } + + <% $change_id_input %> + + <& /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; } @@ -65,12 +84,10 @@ elsif ($opt{'contact_num'}) { '; - $pre .= $opt{'contact_num'} . '_'; + $pre .= $opt{'pre_pwd_field_label'}; } -if ($opt{'popup'}) { - $change_id_input .= ''; -} +my $change_button_id = $pre.'change_button'; my $error = $cgi->param($pre.'error');