{% extends "recontact/base.html" %}{% load staticfiles %}
{% block meta %}{% endblock %} 
{% block title %}Contact Us{% endblock %}
{% block icons %}{% endblock %}
{% block page_style %}{% endblock %}
{% block headscript %}
<script type="text/javascript" src='https://www.google.com/recaptcha/api.js'>
</script>
<script type="text/javascript">
  function onSubmit(token) {
  document.getElementById("recontact_form").submit();
  }
</script>
{% endblock %}
{% block content %}
<h1>Contact Us</h1>
	  <form id="recontact_form" method="post">
	    {% csrf_token %}
	    <table>
	      {{ form.as_table }}
	      <tr>
		<th>
		</th>
		<td>
		  <button class="g-recaptcha recontact"
			  id="id_create_account"
			  name="create_account"
			  data-badge="bottomright"
			  data-sitekey="{{ site_key }}"
			  data-callback="onSubmit">Send Message</button>
		</td>
	      </tr>
	    </table>
	  </form>

{% endblock %}
