File tree Expand file tree Collapse file tree 2 files changed +27
-11
lines changed Expand file tree Collapse file tree 2 files changed +27
-11
lines changed Original file line number Diff line number Diff line change 7
7
8
8
{ if RemoteSystems\ReCaptcha::$siteKey }
9
9
<script src =' https://www.google.com/recaptcha/api.js' ></script >
10
+ <script >
11
+ function onSubmit (token ) {
12
+ document.getElementById(' contact-form' ).submit();
13
+ }
14
+ </script >
10
15
{ /if }
11
16
{ /block }
12
17
20
25
21
26
{ contentBlock " contact-introduction" }
22
27
23
- <form action =" /contact" method =" POST" class =" contact-form" >
28
+ <form action =" /contact" method =" POST" class =" contact-form" id = " contact-form " >
24
29
{ if $validationErrors }
25
30
<div class =" alert alert-danger" >
26
31
{ _ " Please double-check the fields highlighted below." }
35
40
36
41
{ textarea inputName= Message label= Message error= $validationErrors .Message required= true }
37
42
38
- { if RemoteSystems\ReCaptcha::$siteKey }
39
- <div class =" form-group g-recaptcha" data-sitekey =" { RemoteSystems\ReCaptcha::$siteKey |escape } " ></div >
40
- { /if }
41
-
42
43
{ if $validationErrors .ReCaptcha}
43
44
<p class =" text-danger" >{ $validationErrors .ReCaptcha} </p >
44
45
{ /if }
45
46
46
- <button type =" submit" class =" btn btn-primary" >{ _ Send} </button >
47
+ { if RemoteSystems\ReCaptcha::$siteKey }
48
+ <button type =" submit" class =" btn btn-primary g-recaptcha" data-sitekey =" { RemoteSystems\ReCaptcha::$siteKey |escape } " data-callback =' onSubmit' data-action =' submit' >
49
+ { else }
50
+ <button type =" submit" class =" btn btn-primary" >
51
+ { /if }
52
+ { _ " Send" }
53
+ </button >
47
54
</form >
48
55
49
56
</div >
Original file line number Diff line number Diff line change 7
7
8
8
{ if RemoteSystems\ReCaptcha::$siteKey }
9
9
<script src =' https://www.google.com/recaptcha/api.js' ></script >
10
+ <script >
11
+ function onSubmit (token ) {
12
+ document.getElementById(' register' ).submit();
13
+ }
14
+ </script >
10
15
{ /if }
11
16
{ /block }
12
17
65
70
<input type =" password" class =" form-control" id =" PasswordConfirm" name =" PasswordConfirm" value =" { refill field= PasswordConfirm} " >
66
71
</div >
67
72
68
- { if RemoteSystems\ReCaptcha::$siteKey }
69
- <div class =" form-group g-recaptcha" data-sitekey =" { RemoteSystems\ReCaptcha::$siteKey |escape } " ></div >
70
- { /if }
71
-
72
73
<div class =" form-group" >
73
- <p ><button type =" submit" class =" btn btn-primary" >{ _ " Create Account" } </button ></p >
74
+ <p >
75
+ { if RemoteSystems\ReCaptcha::$siteKey }
76
+ <button type =" submit" class =" btn btn-primary g-recaptcha" data-sitekey =" { RemoteSystems\ReCaptcha::$siteKey |escape } " data-callback =' onSubmit' data-action =' submit' >
77
+ { else }
78
+ <button type =" submit" class =" btn btn-primary" >
79
+ { /if }
80
+ { _ " Create Account" }
81
+ </button >
82
+ </p >
74
83
<p class =" help-block" >{ _ " Already have an account?" } <a href =" /login{ tif $.request.return ? cat(' ?return=' , escape($.request.return, url))} " >{ _ " Log in" } </a ></p >
75
84
</div >
76
85
{ /strip }
You can’t perform that action at this time.
0 commit comments