aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJef van Schendel <jefvanschendel@gmail.com>2011-06-22 17:02:28 +0200
committerJef van Schendel <jefvanschendel@gmail.com>2011-06-22 17:02:28 +0200
commit1db7bed64b498da616a4c18e259d278880944ba1 (patch)
tree33748b1b36c2acd3ce570f2412c565d70576013a
parent7f8a70ef25a36561042b34afba899ecf37aacfdc (diff)
downloadmediagoblin-1db7bed64b498da616a4c18e259d278880944ba1.tar.lz
mediagoblin-1db7bed64b498da616a4c18e259d278880944ba1.tar.xz
mediagoblin-1db7bed64b498da616a4c18e259d278880944ba1.zip
Several small UI changes to edit profile page: moved header, changed form wording, changed css class
-rw-r--r--mediagoblin/edit/forms.py6
-rw-r--r--mediagoblin/templates/mediagoblin/edit/edit_profile.html4
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 %}
- <h1>Edit details for {{ user['username'] }}</h1>
<form action="{{ request.urlgen('mediagoblin.edit.profile',
user=user.username) }}"
method="POST" enctype="multipart/form-data">
- <div class="submit_box form_box">
+ <div class="edit_box form_box">
+ <h1>Editing {{ user['username'] }}'s profile</h1>
{{ wtforms_util.render_divs(form) }}
<div class="form_submit_buttons">
<input type="submit" value="submit" class="button" />