Set up the metadata editor forms
authortilly-Q <nattilypigeonfowl@gmail.com>
Tue, 6 May 2014 16:54:08 +0000 (12:54 -0400)
committertilly-Q <nattilypigeonfowl@gmail.com>
Tue, 6 May 2014 16:54:08 +0000 (12:54 -0400)
mediagoblin/edit/forms.py

index cff3a53f6988be28529439e351776f3307acbde5..6cc7a9cb296f01d7725740eba09916177fd8e2e6 100644 (file)
@@ -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)
+    )