0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-29 17:36:49 +01:00

Improve layout of avatar upload page

This commit is contained in:
Matt Westcott 2018-01-17 01:28:35 +00:00
parent 4a9326724d
commit 70aea60e11

View File

@ -7,21 +7,22 @@
{% include "wagtailadmin/shared/header.html" with title=change_str %}
<div class="nice-padding">
<form action="{% url 'wagtailadmin_account_change_avatar' %}" method="POST" enctype="multipart/form-data">
{% csrf_token %}
<ul class="fields">
{% for field in form %}
{% include "wagtailadmin/shared/field_as_li.html" with field=field %}
{% endfor %}
</ul>
<li class="submit"><input type="submit" value="{% trans 'Update' %}" class="button" /></li>
</form>
<p>{% trans "Your current profile picture:" %}</p>
<p>
<span class="avatar square"><img src="{% avatar_url request.user size=50 %}"></span>
</p>
<form action="{% url 'wagtailadmin_account_change_avatar' %}" method="POST" enctype="multipart/form-data">
{% csrf_token %}
<ul class="fields">
{% for field in form %}
{% include "wagtailadmin/shared/field_as_li.html" with field=field %}
{% endfor %}
<li class="submit"><input type="submit" value="{% trans 'Update' %}" class="button" /></li>
</ul>
</form>
</div>
{% endblock %}