{% extends "user_profile/user.html" %}
{% block profilesection %}{% trans %}delete avatar{% endtrans %}{% endblock %}
{% block usercontent %}
    <p>{% trans %}Please select the avatars that you would like to delete.{% endtrans %}</p>
    {% if not avatars %}
        <p>{% trans avatar_change_url="avatar_change"|url %}You have no avatars to delete. Please <a href="{{ avatar_change_url }}">upload one</a> now.{% endtrans %}</p>
    {% else %}
        <form method="POST" action="{{ url('avatar_delete') }}">{{ csrf_input }}
            <ul>
                {{ delete_avatar_form.as_ul() }}
            </ul>
            <p>
                <input type="submit" value="{% trans %}Delete These{% endtrans %}" />
                <a href="{{ user.get_profile_url() }}" class="btn cancel"
                    style="display: inline-block"
                >{% trans %}Cancel{% endtrans %}</a>
            </p>
        </form>
    {% endif %}
{% endblock %}
