X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fcontact.html;h=678193516980880161d33034e62b54472e3a4980;hb=08ec0a26405eab73e9fe80632e788d9af4c76fe7;hp=779905234381c54dd209e8ce822fd80bd97f9eb7;hpb=6016bc83d369186275044bd8539f66a3cb03c4cb;p=freeside.git diff --git a/httemplate/elements/contact.html b/httemplate/elements/contact.html index 779905234..678193516 100644 --- a/httemplate/elements/contact.html +++ b/httemplate/elements/contact.html @@ -46,18 +46,44 @@ % 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); + <& select.html, + field => $name . '_' . $field, + curr_value => $curr_value, + options => [ '', 'Y' ], + option_labels => { '' => 'no', 'Y' => 'yes' }, + style => 'width: 100%', + &> % } else { <% $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 - -% } @@ -97,6 +107,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'; @@ -144,4 +155,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; +