X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fcontact.html;h=905d3d87d99bdba269123e0fee4a7a31325a3f23;hb=ec8a6d7d6c309c1d452f690cc0f3f70b8da2e3be;hp=755daed24b2d8469f56b7e8b5250913e25d64147;hpb=ec479b83db152b2658e99901e03d29d2a458acb9;p=freeside.git diff --git a/httemplate/elements/contact.html b/httemplate/elements/contact.html index 755daed24..905d3d87d 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'; -% $pwd_change_label = 'setup' unless $contact->_password; -% my $action = $fsurl . "edit/cust_main-contacts-password.html?custnum=" . $opt{'custnum'} . "&contactnum=" . $curr_value . "&label=" . $pwd_change_label . "&popup=1"; -% if ($curr_value) { - - <% include('/elements/popup_link.html', - 'action' => $action, - 'width' => '763', - 'height' => '408', - 'actionlabel' => "$pwd_change_label password", - 'html_label' => "$pwd_change_label password", - - ) - %> -
- Password - -% } @@ -100,9 +108,6 @@ my( %opt ) = @_; my $conf = new FS::Conf; -use Data::Dumper; -print Dumper($conf->config); - my $self_base_url = $conf->config('selfservice_server-base_url'); my $name = $opt{'element_name'} || $opt{'field'} || 'contactnum'; @@ -150,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; +