From: tilly-Q Date: Tue, 6 May 2014 16:54:08 +0000 (-0400) Subject: Set up the metadata editor forms X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=f0cfd3396e2bcfd6a0b3eead1875efd0d29f0ff5;p=mediagoblin.git Set up the metadata editor forms --- diff --git a/mediagoblin/edit/forms.py b/mediagoblin/edit/forms.py index cff3a53f..6cc7a9cb 100644 --- a/mediagoblin/edit/forms.py +++ b/mediagoblin/edit/forms.py @@ -123,7 +123,13 @@ class ChangeEmailForm(wtforms.Form): description=_( "Enter your password to prove you own this account.")) +class MetaDataForm(wtforms.Form): + identifier = wtforms.TextField( + _(u'Id')) + value = wtforms.TextField( + _(u'Value')) + class EditMetaDataForm(wtforms.Form): media_metadata = wtforms.FieldList( - wtforms.TextField( - _(u'Value'))) + wtforms.FormField(MetaDataForm) + )