Mercurial > public > sg101
changeset 1122:2574cd24773e
Convert avatar form to V3 design.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Wed, 03 Aug 2016 21:17:59 -0500 |
parents | 67c839267220 |
children | ce6a0c12cbf3 |
files | bio/views.py sg101/templates/bio/avatar.html |
diffstat | 2 files changed, 6 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/bio/views.py Wed Aug 03 19:35:54 2016 -0500 +++ b/bio/views.py Wed Aug 03 21:17:59 2016 -0500 @@ -157,6 +157,7 @@ return render(request, 'bio/avatar.html', { 'form': form, + 'V3_DESIGN': True, }) #######################################################################
--- a/sg101/templates/bio/avatar.html Wed Aug 03 19:35:54 2016 -0500 +++ b/sg101/templates/bio/avatar.html Wed Aug 03 21:17:59 2016 -0500 @@ -1,4 +1,4 @@ -{% extends 'bio/base.html' %} +{% extends 'v3/base.html' %} {% load bio_tags %} {% block title %}Change My Avatar{% endblock %} {% block content %} @@ -9,15 +9,15 @@ To change your avatar, upload a file using the form, below. You may leave the form blank to reset your avatar to the default. </p> - <p> + <div class="callout"> Your file must be a recognizable graphic file, such as jpeg, gif, png, etc. The maximum size of an avatar is 100 x 100 pixels. If your uploaded file is larger than this it will be scaled down to 100 x 100 pixels. For best results, please ensure your image is square. - </p> + </div> <form enctype="multipart/form-data" method="POST" action=".">{% csrf_token %} {{ form.as_p }} - <input type="submit" value="Update Avatar" /> - <a href="{% url 'bio-me' %}">Cancel</a> + <input type="submit" class="button" value="Update Avatar" /> + <a href="{% url 'bio-me' %}" class="secondary button">Cancel</a> </form> {% endblock %}