Several small UI changes to edit profile page: moved header, changed form wording...
authorJef van Schendel <jefvanschendel@gmail.com>
Wed, 22 Jun 2011 15:02:28 +0000 (17:02 +0200)
committerJef van Schendel <jefvanschendel@gmail.com>
Wed, 22 Jun 2011 15:02:28 +0000 (17:02 +0200)
mediagoblin/edit/forms.py
mediagoblin/templates/mediagoblin/edit/edit_profile.html

index fb4930a2ce2dfb4ca9a891c9678391d7ab36d292..2efdb9e4380d29c84c0b90a5d9505bc3be00febb 100644 (file)
@@ -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)])
index 63bf013f8ac9f4631f61d25470627c65e8953d5e..8ce474f08c69490500117582d967c1e3ac9d0b7e 100644 (file)
 {% 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" />