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)])
{% 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" />