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

{% block content %}
    <div id="form-500">   <!-- This div used for 500 dialog box (handling ajaxError) -->
        <h1>{% trans "Server Error." %} <em>(500)</em></h1>

        <p class="error">{% trans "The server encountered an internal error and was unable to complete your request. Please give us feedback to help to improve the OMERO applications. Thanks for your patience." %}</p>
        
        <p>{% trans "OME's QA system records any problem or comment you have submitted, your email address, and the IP address you are currently using. We store this information in a password-protected system. If you'd prefer us not to hold this information, please don't submit any information to OME QA. Any feedback you provide will be used to further the development of the OMERO.web and improve our software." %}</p>
        
        {% if error %}<ul class="errorlist"><li>{{ error }}</li></ul>{% endif %}
        
        <p>{% trans "Fields marked in red are mandatory." %}</p>
        
        <form action="{% url 'fsend' %}" method="post" class="standard_form">{% csrf_token %}
            {% for field in form %}
                {% if field.field.required %}<span class="required">{{ field.label_tag }}</span>{% else %}{{ field.label_tag }}{% endif %}
                {{ field }}
                {% if field.errors %}{{ field.errors }}{% endif %}
                {{ field.help_text|safe }}
                <br/>
            {% endfor %}
                <input type="submit" value="Send" />
        </form>
    </div>
{% endblock %}