{% extends "site_base.html" %}
{% load styled_forms %}
{% load forms_tags %}
{% load i18n %}

{% block title %}{{ block.super }} Contact Us{% endblock %}

{% block extra_head %}
{{ block.super }}
<link rel="stylesheet" href="{{ STATIC_URL }}css/forms.css">
{% endblock %}

{% block body %}
<div class="t">
{% if SITE_GLOBAL_CONTACT_FORM %}
    {% embed_form SITE_GLOBAL_CONTACT_FORM "forms/contact_form.html" %}
{% else %}
    <h1>{% trans "Contact Us" %}</h1>

    <div class="contact-form-wrap">
    
        {% blocktrans %}
        <p>Please fill out the form below.</p>
        {% endblocktrans %}

        <form action="{% url form %}" method="post">{% csrf_token %}
        <div class="forms">
            {{ form|styled_form }}
            <input type="submit" value="Contact {{ SITE_GLOBAL_SITEDISPLAYNAME|capfirst }}" />
        </div>
        </form>
    </div>
{% endif %}
</div>
{% endblock %}
