From 1db7bed64b498da616a4c18e259d278880944ba1 Mon Sep 17 00:00:00 2001 From: Jef van Schendel Date: Wed, 22 Jun 2011 17:02:28 +0200 Subject: [PATCH] Several small UI changes to edit profile page: moved header, changed form wording, changed css class --- mediagoblin/edit/forms.py | 6 +++--- mediagoblin/templates/mediagoblin/edit/edit_profile.html | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/mediagoblin/edit/forms.py b/mediagoblin/edit/forms.py index fb4930a2..2efdb9e4 100644 --- a/mediagoblin/edit/forms.py +++ b/mediagoblin/edit/forms.py @@ -27,8 +27,8 @@ class EditForm(wtforms.Form): description = wtforms.TextAreaField('Description of this work') class EditProfileForm(wtforms.Form): + bio = wtforms.TextAreaField('Bio', + [wtforms.validators.Length(min=0, max=500)]) url = wtforms.TextField( - 'website URL', + 'Website', [wtforms.validators.URL(message='Improperly formed URL')]) - bio = wtforms.TextAreaField('bio', - [wtforms.validators.Length(min=0, max=500)]) diff --git a/mediagoblin/templates/mediagoblin/edit/edit_profile.html b/mediagoblin/templates/mediagoblin/edit/edit_profile.html index 63bf013f..8ce474f0 100644 --- a/mediagoblin/templates/mediagoblin/edit/edit_profile.html +++ b/mediagoblin/templates/mediagoblin/edit/edit_profile.html @@ -20,12 +20,12 @@ {% import "/mediagoblin/utils/wtforms.html" as wtforms_util %} {% block mediagoblin_content %} -

Edit details for {{ user['username'] }}

-
+
+

Editing {{ user['username'] }}'s profile

{{ wtforms_util.render_divs(form) }}
-- 2.25.1