X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fcontact.html;h=faee7ead445c627d9147fd29461e2410ea6f06de;hb=95144265eeb3ecd13b16708dbdd75dd3701f92ad;hp=b0a7caca14609d4a7c6f9393e121f63c46d3d3c5;hpb=d8c62f08bf358948859491abe97532bb89a18859;p=freeside.git diff --git a/httemplate/elements/contact.html b/httemplate/elements/contact.html index b0a7caca1..faee7ead4 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); @@ -94,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'; @@ -149,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'; } @@ -165,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; +