{% extends "base.html" %}
{% load i18n %}

{% block extra_scripts %}
  {{ form.media }}
{% endblock %}

{% block title %}
  Contact
{% endblock %}

{% block content %}
  <p id="back"><a href="{% url 'inbox' %}">« {% trans "return_inbox" %}</a></p>
  <form method="post">
    {% csrf_token %}
    {% include "docbow/errors.html" with error_form=form %}

    {% include "docbow/field.html" with field=form.name %}

    {% include "docbow/field.html" with field=form.email %}

    {% include "docbow/field.html" with field=form.phone_number %}

    {% include "docbow/field.html" with field=form.subject %}

    {% include "docbow/field.html" with field=form.message %}

    <div class="buttonHolder">
      <input name="send" value="{% trans 'send your message' %}" class="submit submitButton" id="submit-id-send" type="submit">
    </div>
  </form>
{% endblock %}
