cookiecutter-django/{{cookiecutter.repo_name}}/{{cookiecutter.project_name}}/templates/avatar/add.html

23 lines
710 B
HTML
Raw Normal View History

2013-08-23 11:52:25 +04:00
{% raw %}
{% extends "avatar/base.html" %}
{% load i18n avatar_tags %}
{% load url from future %}
{% block content %}
<div class="container">
<div class="row">
<div class="col-xs-12">
<h2>{% trans "Your current avatar: " %}</h2>
{% avatar user %}
{% if not avatars %}
<p>{% trans "You haven't uploaded an avatar yet. Please upload one now." %}</p>
{% 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>
</div>
</div>
</div>
{% endblock %}
2013-08-23 11:52:25 +04:00
{% endraw %}