diff options
author | tilly-Q <nattilypigeonfowl@gmail.com> | 2014-05-12 12:26:07 -0400 |
---|---|---|
committer | tilly-Q <nattilypigeonfowl@gmail.com> | 2014-05-12 12:26:07 -0400 |
commit | 7bcb3e100c38270342da8a84e63f5350f9c71f05 (patch) | |
tree | 0a52d0a0cb95c20f08b48238dd77d19cd64e0a0a /mediagoblin/edit/forms.py | |
parent | fd7069632b0aa6064e0abe1f3c0c129fb316faa6 (diff) | |
parent | 494bce47f92165f322347003baac22731e0ee7aa (diff) | |
download | mediagoblin-7bcb3e100c38270342da8a84e63f5350f9c71f05.tar.lz mediagoblin-7bcb3e100c38270342da8a84e63f5350f9c71f05.tar.xz mediagoblin-7bcb3e100c38270342da8a84e63f5350f9c71f05.zip |
Merge branch 'metadata-editor' into metadata
Diffstat (limited to 'mediagoblin/edit/forms.py')
-rw-r--r-- | mediagoblin/edit/forms.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/mediagoblin/edit/forms.py b/mediagoblin/edit/forms.py index 2c9b5e99..7ddf603e 100644 --- a/mediagoblin/edit/forms.py +++ b/mediagoblin/edit/forms.py @@ -122,3 +122,15 @@ class ChangeEmailForm(wtforms.Form): [wtforms.validators.Required()], description=_( "Enter your password to prove you own this account.")) + +class MetaDataForm(wtforms.Form): + identifier = wtforms.TextField(_(u'Identifier')) + value = wtforms.TextField(_(u'Value')) + +class EditMetaDataForm(wtforms.Form): + media_metadata = wtforms.FieldList( + wtforms.FormField(MetaDataForm, label="") + ) + context = wtforms.FieldList( + wtforms.FormField(MetaDataForm, label="") + ) |