add reCaptcha parts in form

This commit is contained in:
Chris Camel 2020-06-02 15:29:23 +02:00
parent 7511603de4
commit 02022c278b
No known key found for this signature in database
GPG Key ID: 125EFEF60AEF6949
1 changed files with 8 additions and 2 deletions

View File

@ -3,6 +3,9 @@
<fieldset>
<legend>Please fill in the form to submit your request</legend>
<form action="https://contact-request-endpoint/" method="post">
<!-- uncomment this div block when enabling reCaptcha
<script src="https://www.google.com/recaptcha/api.js"></script>
-->
<div class="form-item">
<label for="name">Name</label>
<input type="text" name="name" id="name" placeholder="Mr. Smith" />
@ -31,6 +34,9 @@
<input type="hidden" name="target" id="target" value="demo" />
</div>
{{ end }}
<!-- uncomment the below div when enabling reCaptcha
<div class="g-recaptcha" data-sitekey="{{.Site.Params.reCaptchaPrivateKey}}"></div>
-->
<input class="button" type="submit" value="Submit">
</form>
</fieldset>