X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Felements%2Fcontact.html;h=7b6c853d4ca618fd632dd23b762d0315e3acba1b;hp=b3e5353448b6bd7b2ad2c44e7492ccb06aebc136;hb=833cfe5c9938d33c3e6b97ed610c25a7afa6eb04;hpb=f1f423f3cb29a9d4ca8029d8b58f0111db0f1957 diff --git a/httemplate/elements/contact.html b/httemplate/elements/contact.html index b3e535344..7b6c853d4 100644 --- a/httemplate/elements/contact.html +++ b/httemplate/elements/contact.html @@ -2,20 +2,20 @@ -
% } else { @@ -31,7 +31,7 @@ % 'phonetypenum' => $1, % }); % if ( $contact_phone ) { -% $value = $contact_phone->phonenum; +% $value = $contact_phone->phonenum_pretty; % $value .= 'x'.$contact_phone->extension % if $contact_phone->extension; % $value = '+'. $contact_phone->countrycode. " $value" @@ -40,20 +40,86 @@ % } % } elsif ( $field eq 'emailaddress' ) { % $value = join(', ', map $_->emailaddress, $contact->contact_email); +% } elsif ( $field eq 'password' ) { +% $value = $contact->get('_password') ? '********' : ''; +% } elsif ( $field eq 'selfservice_access' +% or $field eq 'comment' +% or $field eq 'invoice_dest' +% or $field eq 'message_dest' ) { +% $value = $X_contact->get($field); % } else { % $value = $contact->get($field); % } |
- "
- <% $onchange %>
- > +% if ( $field eq 'selfservice_access' ) { + + +% #password form +% } elsif ( $field eq 'password') { + +% my $contactnum = $curr_value ? $curr_value : '0'; + <& '/elements/validate_password.html', + 'fieldid' => "changepw".$id."_password", + 'svcnum' => '', + 'contactnum' => $contactnum, + 'submitid' => "submit", + &> + + +% } elsif ( $field eq 'invoice_dest' || $field eq 'message_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} %> +% if ( $field eq 'password' ) { + +% } |
% }