From f894f28f646e6a233ccb10624f37d7a5f216279b Mon Sep 17 00:00:00 2001 From: Mitch Jackson Date: Wed, 22 Aug 2018 14:14:30 -0400 Subject: RT# 81150 Google now requires api key for drawing api --- httemplate/elements/polygon.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'httemplate/elements') diff --git a/httemplate/elements/polygon.html b/httemplate/elements/polygon.html index 813aa419f..b5aa93753 100644 --- a/httemplate/elements/polygon.html +++ b/httemplate/elements/polygon.html @@ -5,13 +5,16 @@ my $id = $opt{'id'} || $opt{'field'}; my $div_id = "div_$id"; my $vertices_json = $opt{'curr_value'} || '[]'; + +my $apikey = FS::Conf->new->config('google_maps_api_key'); + <& hidden.html, %opt &>
 
- + % } elsif ( $field eq 'invoice_dest' ) { @@ -96,6 +113,9 @@ % }
<% $label{$field} %> +% if ( $field eq 'password' ) { +
+% } % } @@ -143,6 +163,11 @@ tie my %label, 'Tie::IxHash', 'selfservice_access' => 'Self-service' ; +unless ($opt{'for_prospect'}) { + $label{'selfservice_access'} = 'Self-service'; + $label{'password'} = 'Password'; +} + my $first = 0; foreach my $phone_type ( qsearch({table=>'phone_type', order_by=>'weight'}) ) { next if $phone_type->typename =~ /^(Home|Fax)$/; diff --git a/httemplate/elements/validate_password.html b/httemplate/elements/validate_password.html index a8c06774e..9ecbba52d 100644 --- a/httemplate/elements/validate_password.html +++ b/httemplate/elements/validate_password.html @@ -30,7 +30,7 @@ function add_password_validation (fieldid, submitid) { // some browsers allow the enter key to submit a form even if the submit button is disabled // below prevents enter key from submiting form if password has not been validated. if (key == '13') { - var check = checkPasswordValidation(); + var check = checkPasswordValidation(fieldid); return check; } } @@ -62,6 +62,7 @@ function add_password_validation (fieldid, submitid) { ); } else { resultfield.innerHTML = ''; + if (submitid){ document.getElementById(submitid).disabled = false; } } }; } -- cgit v1.2.1 From 741c37dc7259c25f4229fbeeeb28231b4a99ecbc Mon Sep 17 00:00:00 2001 From: Christopher Burger Date: Wed, 29 Aug 2018 14:24:47 -0400 Subject: RT# 75817 - removed change password link as it is not needed anymore --- httemplate/elements/contact.html | 4 ---- 1 file changed, 4 deletions(-) (limited to 'httemplate/elements') diff --git a/httemplate/elements/contact.html b/httemplate/elements/contact.html index a298a1b15..a915a5876 100644 --- a/httemplate/elements/contact.html +++ b/httemplate/elements/contact.html @@ -58,7 +58,6 @@