X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fcontact.html;h=850c2540d6156c882c95446c2819bd984050b923;hb=d2d8c2d81508b6e26e2a199c00819f392476d6fb;hp=8936569cee877546da690545df1ed00fa0aec7a2;hpb=2eefefbe2f93bd6f306c7f73443028dbfd70782e;p=freeside.git diff --git a/httemplate/elements/contact.html b/httemplate/elements/contact.html index 8936569ce..850c2540d 100644 --- a/httemplate/elements/contact.html +++ b/httemplate/elements/contact.html @@ -50,17 +50,34 @@ % if ( $field eq 'selfservice_access' ) { + + <& /elements/change_password.html, + 'contact_num' => $curr_value, + 'custnum' => $opt{'custnum'}, + 'curr_value' => '', + 'no_label_display' => '1', + 'noformtag' => '1', + 'pre_pwd_field_label' => $id.'_', + &> + % } elsif ( $field eq 'invoice_dest' ) { % my $curr_value = $cgi->param($name . '_' . $field); % $curr_value = $value if !defined($curr_value); @@ -85,22 +102,6 @@ <% $label{$field} %> % } -% my $pwd_change_label = 'change password'; -% $pwd_change_label = 'setup password' unless $contact->_password; -% if ($curr_value) { - - - <& /elements/change_password.html, - 'contact_num' => $curr_value, - 'custnum' => $opt{'custnum'}, - 'curr_value' => '', - 'label' => $pwd_change_label, - &> - -
- Password - -% } @@ -110,6 +111,7 @@ my( %opt ) = @_; my $conf = new FS::Conf; + my $self_base_url = $conf->config('selfservice_server-base_url'); my $name = $opt{'element_name'} || $opt{'field'} || 'contactnum'; @@ -165,7 +167,7 @@ tie my %label, 'Tie::IxHash', ; unless ($opt{'for_prospect'}) { - $label{'invoice_dest'} = 'Send invoices'; + $label{'invoice_dest'} = 'Send invoices'; $label{'selfservice_access'} = 'Self-service'; } @@ -181,4 +183,7 @@ $label{'comment'} = 'Comment'; my @fields = $opt{'name_only'} ? qw( first last ) : keys %label; +my $pwd_change_label = 'Change Password'; +$pwd_change_label = 'Setup Password' unless $contact->_password; +