From: Jef van Schendel Date: Wed, 22 Jun 2011 15:02:28 +0000 (+0200) Subject: Several small UI changes to edit profile page: moved header, changed form wording... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=1db7bed64b498da616a4c18e259d278880944ba1;p=mediagoblin.git Several small UI changes to edit profile page: moved header, changed form wording, changed css class --- 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) }}