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" />
@ -15,7 +18,7 @@
<label for="organization">Organization</label>
<input type="text" name="organization" id="organization" placeholder="Company, Inc." />
</div>
{{ if in .Params.tags "contact" }}
{{ if in .Params.tags "contact" }}
<div class="form-item">
<label for="subject">Subject</label>
<input type="text" name="subject" id="subject" value="" placeholder="Need help or expertise?" />
@ -25,12 +28,15 @@
<label for="message">Message</label>
<textarea rows="6" name="message" id="message" placeholder="Please add details concerning your request."></textarea>
</div>
{{ else }}
{{ else }}
<div class="form-item">
<input type="hidden" name="subject" id="subject" value="Your Access to Product Demo!" />
<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>