diff options
author | Caleb Forbes Davis V <caldavis@gmail.com> | 2011-08-11 00:50:16 -0500 |
---|---|---|
committer | Caleb Forbes Davis V <caldavis@gmail.com> | 2011-08-11 00:50:16 -0500 |
commit | f6bf68cae5f2907924e126a3a2f3a2f015292323 (patch) | |
tree | 3eb9fb19c26235477a196297863a671349b0b331 /mediagoblin/submit/forms.py | |
parent | f64e5250906401a3d5a5fc587521bc31e146859c (diff) | |
download | mediagoblin-f6bf68cae5f2907924e126a3a2f3a2f015292323.tar.lz mediagoblin-f6bf68cae5f2907924e126a3a2f3a2f015292323.tar.xz mediagoblin-f6bf68cae5f2907924e126a3a2f3a2f015292323.zip |
Feature #446 - Render the submission form using the render_divs macro
- Currently there are individual calls to wtforms_util.render_field_div
for each field in the media submit form, which is too verbose
- Matched the field ordering in submit/form.py to the verbose version
- hacks the correct textareafield rendering with hard-coded rows and
columns.
- TODO - figure out how to pass the textarea dimensions with **kwargs
Diffstat (limited to 'mediagoblin/submit/forms.py')
-rw-r--r-- | mediagoblin/submit/forms.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mediagoblin/submit/forms.py b/mediagoblin/submit/forms.py index 241d32dc..4519b057 100644 --- a/mediagoblin/submit/forms.py +++ b/mediagoblin/submit/forms.py @@ -22,11 +22,11 @@ from mediagoblin.util import fake_ugettext_passthrough as _ class SubmitStartForm(wtforms.Form): + file = wtforms.FileField(_('File')) title = wtforms.TextField( _('Title'), [wtforms.validators.Length(min=0, max=500)]) description = wtforms.TextAreaField('Description of this work') - file = wtforms.FileField(_('File')) tags = wtforms.TextField( _('Tags'), [tag_length_validator]) |