X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fcontact.html;h=48b5e2ce236e891af1909d9fa260f038ca85b510;hb=a8d62307b05d924d3304fd7cf18177e2fc1c91f7;hp=faee7ead445c627d9147fd29461e2410ea6f06de;hpb=74dcfa11ddacefb8349a2811525f704284b13b2b;p=freeside.git diff --git a/httemplate/elements/contact.html b/httemplate/elements/contact.html index faee7ead4..48b5e2ce2 100644 --- a/httemplate/elements/contact.html +++ b/httemplate/elements/contact.html @@ -1,4 +1,6 @@ -% unless ( $opt{'js_only'} ) { +% if ( $opt{'js_only'} ) { +<% $js %> +% } else { @@ -40,9 +42,12 @@ % } % } 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 'invoice_dest' +% or $field eq 'message_dest' ) { % $value = $X_contact->get($field); % } else { % $value = $contact->get($field); @@ -55,30 +60,27 @@ ID = "<%$id%>_<%$field%>" STYLE = "width: 140px" > -