{% extends 'base.html' %}
{% load custom_tags_and_filters %}
{% block title %}Feedback{% endblock %}
{% block content %}
    {% if customization_required %}
        <h1>The Feedback page has not been customized yet</h1>
        <p>
            Feedback is emailed to an address specified by the {{ site_title }} site administrator.
            {% if user.is_superuser %}
                Use the <a href="{% url 'customization' %}">customizations page</a>
                to enter an email address and upload a feedback email template, then all users will be able to send feedback.
            {% endif %}
        </p>
    {% else %}
        <h1>Submit feedback about the {{ facility_name }}</h1>
        <p>
            We're continually working to improve the {{ facility_name }} experience for everyone.
            <br>
            Do you have an idea to make the {{ facility_name }} better? Send us your feedback!
        </p>
        <form class="form" id="feedback_form" action="{% url 'feedback' %}" method="post">
            {% csrf_token %}
            <div class="form-group">
                <label>
                    <textarea rows="6" cols="75" name="feedback" id="feedback" class="form-control" maxlength="5000" required></textarea>
                </label>
            </div>
            <div class="form-group">{% button type="save" value="Send feedback" icon="glyphicon-send" %}</div>
        </form>
    {% endif %}
{% endblock %}
