{% comment %}
{% endcomment %}
{% load i18n %}
<table class="table">
    <tr>
        <th class="text-center">{% translate "Submitted" %}</th>
        <th class="text-center">{% translate "Last Status" %}</th>
        <th class="text-center">{% translate "Closed" %}</th>
        <th class="text-center">{% translate "Character" %}</th>
        <th class="text-center">{% translate "Form" %}</th>
        <th class="text-center">{% translate "Reviewer" %}</th>
        <th class="text-center">{% translate "Status" %}</th>
        <th class="text-center">{% translate "Actions" %}</th>
    </tr>
    {% for app in applications %}
        <tr>
            <td class="text-center">{{ app.submitted_on }}</td>
            <td class="text-center">{{ app.status_on }}</td>
            <td class="text-center">{{ app.closed_on }}</td>
            <td class="text-center">{{ app.eve_character.character_name }}</td>
            <td class="text-center">{{ app.form }}</td>
            <td class="text-center">{{ app.reviewer }}</td>
            <td class="text-center">
            {% include "membertools/partials/app_status_label.html" with application=app %}
            </td>
            <td class="text-center">
                <a href="{% url 'membertools:view' app.id %}" class="btn btn-primary">
                    <span class="glyphicon glyphicon-eye-open"></span>
                </a>
                {% if app.status == app.STATUS_NEW %}
                <a href="{% url 'membertools:remove' app.id %}" class="btn btn-danger">
                    <span class="glyphicon glyphicon-remove"></span>
                </a>
                {% endif %}
            </td>
        </tr>
    {% empty %}
        <tr class="warning">
            <td colspan="8" class="text-center">No matching applications available.</td>
        </tr>
    {% endfor %}
</table>
