diff --git a/ivatar/ivataraccount/templates/profile.html b/ivatar/ivataraccount/templates/profile.html index 8e0488a..094fb4a 100644 --- a/ivatar/ivataraccount/templates/profile.html +++ b/ivatar/ivataraccount/templates/profile.html @@ -1,6 +1,7 @@ {% extends 'base.html' %} {% load i18n %} {% load static %} +{% load bootstrap4 %} {% block title %}{% trans 'Your Profile' %}{% endblock title %} @@ -15,32 +16,60 @@ {% endif %} + + {% if user.confirmedemail_set.count or user.confirmedopenid_set.count %} -

{% trans 'You have the following confirmed email addresses and OpenIDs:' %}

+

{% trans 'You have the following confirmed identities:' %}

@@ -50,12 +79,35 @@

{% trans 'You have the following unconfirmed email addresses and OpenIDs:' %}

{% endif %} @@ -71,9 +123,19 @@ {% if user.photo_set.count %}

{% trans 'Here are the photos you have uploaded/imported:' %}

{% endif %} diff --git a/ivatar/ivataraccount/templates/upload_photo.html b/ivatar/ivataraccount/templates/upload_photo.html index 6f98ed9..36000ab 100644 --- a/ivatar/ivataraccount/templates/upload_photo.html +++ b/ivatar/ivataraccount/templates/upload_photo.html @@ -1,6 +1,7 @@ {% extends 'base.html' %} {% load i18n %} {% load static %} +{% load bootstrap4 %} {% block title %}{% trans 'Upload a new photo' %} - ivatar{% endblock title %} @@ -8,25 +9,35 @@ {% endblock header %} {% block content %} +

{% trans 'Upload a new photo' %}

-

{% trans 'Upload a new photo' %}

+
{% csrf_token %} + {% if email %}{% endif %} + {% if openid %}{% endif %} -{% csrf_token %} -{% if email %}{% endif %} -{% if openid %}{% endif %} + {{ form.photo.errors }} +
+ {{ form.photo.label_tag }} + +
+ {% blocktrans with max_file_size|filesizeformat as max_size %}Maximum file size of {{ max_size }}.{% endblocktrans %}

-{{ form.photo.errors }} -

{{ form.photo.label_tag }} -
{% blocktrans with max_file_size|filesizeformat as max_size %}Maximum file size of {{ max_size }}.{% endblocktrans %}

- - - -

{% trans 'Cancel' %}

- -
+
+ +
+ {% buttons %} + + + {% endbuttons %} + {% endblock content %}