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

{% block main_panel %}
<!--
    <p>{% trans "Please select the avatars that you would like to delete." %}</p>
-->
    <h2>删除头像</h2>
    {% if not avatars %}
        {% url avatar_change as avatar_change_url %}
        <p>{% blocktrans %}You have no avatars to delete. Please <a href="{{ avatar_change_url }}">upload one</a> now.{% endblocktrans %}</p>
    {% else %}
        <form method="POST" action="{% url avatar_delete %}">
            <lable>请选择要删除的头像：</lable>
            {% for boundfield in delete_avatar_form %}
            {{ boundfield }}
            {% endfor %}
            <p>{% csrf_token %}<input type="submit" value="{% trans "Delete These" %}" /></p>
        </form>
    {% endif %}
{% endblock %}
