add reCaptcha parts in form
This commit is contained in:
		
							parent
							
								
									7511603de4
								
							
						
					
					
						commit
						02022c278b
					
				| 
						 | 
					@ -3,6 +3,9 @@
 | 
				
			||||||
   <fieldset>
 | 
					   <fieldset>
 | 
				
			||||||
      <legend>Please fill in the form to submit your request</legend>
 | 
					      <legend>Please fill in the form to submit your request</legend>
 | 
				
			||||||
      <form action="https://contact-request-endpoint/" method="post">
 | 
					      <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">
 | 
					         <div class="form-item">
 | 
				
			||||||
            <label for="name">Name</label>
 | 
					            <label for="name">Name</label>
 | 
				
			||||||
            <input type="text" name="name" id="name"  placeholder="Mr. Smith" />
 | 
					            <input type="text" name="name" id="name"  placeholder="Mr. Smith" />
 | 
				
			||||||
| 
						 | 
					@ -31,6 +34,9 @@
 | 
				
			||||||
            <input type="hidden" name="target" id="target"  value="demo" />
 | 
					            <input type="hidden" name="target" id="target"  value="demo" />
 | 
				
			||||||
         </div>
 | 
					         </div>
 | 
				
			||||||
         {{ end }}
 | 
					         {{ 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">
 | 
					         <input  class="button"  type="submit" value="Submit">
 | 
				
			||||||
      </form>
 | 
					      </form>
 | 
				
			||||||
   </fieldset>
 | 
					   </fieldset>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in New Issue