diff options
author | tilly-Q <nattilypigeonfowl@gmail.com> | 2014-05-06 17:00:25 -0400 |
---|---|---|
committer | tilly-Q <nattilypigeonfowl@gmail.com> | 2014-05-06 17:00:25 -0400 |
commit | e80596c80eb06e6d199795e59dcc37b27d77fe55 (patch) | |
tree | c54c5fcdcece8dd6285ae4c0ebe46f3a337fca95 /mediagoblin/edit/forms.py | |
parent | f0cfd3396e2bcfd6a0b3eead1875efd0d29f0ff5 (diff) | |
download | mediagoblin-e80596c80eb06e6d199795e59dcc37b27d77fe55.tar.lz mediagoblin-e80596c80eb06e6d199795e59dcc37b27d77fe55.tar.xz mediagoblin-e80596c80eb06e6d199795e59dcc37b27d77fe55.zip |
Created a UI for editting a media's metadata. Had to add a new macro to
wtforms.html in the process.
Diffstat (limited to 'mediagoblin/edit/forms.py')
-rw-r--r-- | mediagoblin/edit/forms.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/mediagoblin/edit/forms.py b/mediagoblin/edit/forms.py index 6cc7a9cb..ce66526f 100644 --- a/mediagoblin/edit/forms.py +++ b/mediagoblin/edit/forms.py @@ -124,12 +124,13 @@ class ChangeEmailForm(wtforms.Form): "Enter your password to prove you own this account.")) class MetaDataForm(wtforms.Form): - identifier = wtforms.TextField( - _(u'Id')) - value = wtforms.TextField( - _(u'Value')) + identifier = wtforms.TextField('') + value = wtforms.TextField('') class EditMetaDataForm(wtforms.Form): media_metadata = wtforms.FieldList( - wtforms.FormField(MetaDataForm) + wtforms.FormField(MetaDataForm, label="") + ) + context = wtforms.FieldList( + wtforms.FormField(MetaDataForm, label="") ) |