mirror of
https://github.com/jazzband/django-avatar.git
synced 2026-05-10 08:34:45 +00:00
21 lines
804 B
HTML
21 lines
804 B
HTML
{% extends "avatar/base.html" %}
|
|
{% load i18n avatar_tags %}
|
|
|
|
{% block content %}
|
|
<p>{% trans "Your current avatar: " %}</p>
|
|
{% avatar user %}
|
|
{% if not avatars %}
|
|
<p>{% trans "You haven't uploaded an avatar yet. Please upload one now." %}</p>
|
|
{% else %}
|
|
<form method="POST" action="{% url 'avatar:change' %}">
|
|
<ul>
|
|
{{ primary_avatar_form.as_ul }}
|
|
</ul>
|
|
<p>{% csrf_token %}<input type="submit" value="{% trans "Choose new Default" %}" /></p>
|
|
</form>
|
|
{% endif %}
|
|
<form enctype="multipart/form-data" method="POST" action="{% url 'avatar:add' %}">
|
|
{{ upload_avatar_form.as_p }}
|
|
<p>{% csrf_token %}<input type="submit" value="{% trans "Upload New Image" %}" /></p>
|
|
</form>
|
|
{% endblock %}
|