{% extends 'base.html' %}
{% block content %}

    <div class="row marketing">
        {% for message in messages %}
            {% if 'error' in message.tags %}
                <div class="alert alert-danger">
                    <a class="close" href="#" data-dismiss="alert">×</a>
                    {{ message }}
                </div>
            {% endif %}
        {% endfor %}
        {% for message in messages %}
            {% if 'success' in message.tags %}
                <div class="alert alert-success">
                    <a class="close" href="#" data-dismiss="alert">×</a>
                    {{ message|safe }}
                </div>
            {% endif %}
        {% endfor %}
        <form name="contact" action="/contact" method="post">
            {% csrf_token %}
            <div class="form-group">
                <label>Your email:</label>
                <input type="text" class="form-control" name="your_email"/>
            </div>
            <div class="form-group">
                <label>Message:</label>
                <textarea rows="10" class="form-control" name="message"></textarea>
            </div>
            <input class="btn btn-success" type="submit" value="Send"/>
        </form>
    </div>
{% endblock %}