X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fcontact.html;h=a9e1f23c977d787cf5f432e0459057699f0c9e24;hb=609e7cb967020e23f147f4e1b475fed97e37db30;hp=ccbb431ab077d6c8affb7b8a8cad5fb67cb3c04d;hpb=367ff2ec9a5d8e6bf73c67d02834460c069c7ede;p=freeside.git
diff --git a/httemplate/elements/contact.html b/httemplate/elements/contact.html
index ccbb431ab..a9e1f23c9 100644
--- a/httemplate/elements/contact.html
+++ b/httemplate/elements/contact.html
@@ -98,7 +98,7 @@
<% $label{$field} %>
% if ( $field eq 'password' ) {
-
+
% }
% }
@@ -145,7 +145,6 @@ tie my %label, 'Tie::IxHash',
'last' => 'Last name',
'title' => 'Title/Position',
'emailaddress' => 'Email',
- 'selfservice_access' => 'Self-service'
;
unless ($opt{'for_prospect'}) {
@@ -165,8 +164,10 @@ $label{'comment'} = 'Comment';
my @fields = $opt{'name_only'} ? qw( first last ) : keys %label;
+my $submitid = $opt{'submit_id'} ? $opt{'submit_id'} : 'submit';
+
my $js = qq(
- add_password_validation('changepw$id\_password', 'submit', '', '$contactnum');
+ add_password_validation('changepw$id\_password', '$submitid', '', '$contactnum');
var selfService = document.getElementById("$id\_selfservice_access").value;
@@ -178,6 +179,6 @@ my $js = qq(
else { document.getElementById("changepw$id\_password").disabled = 'true'; }
return false;
}
-);
+) unless $opt{'for_prospect'};
%init>