diff MoinMoin/templates/modify.html @ 1624:c6974ba2e2b2

Widget-based metadata editor.
author Cheer Xiao <xiaqqaix@gmail.com>
date Wed, 01 Aug 2012 23:31:14 +0800
parents c32ff2e07e7a
children 8b7a85055643
line wrap: on
line diff
--- a/MoinMoin/templates/modify.html	Wed Aug 01 00:22:42 2012 +0800
+++ b/MoinMoin/templates/modify.html	Wed Aug 01 23:31:14 2012 +0800
@@ -2,6 +2,7 @@
 {% import "utils.html" as utils %}
 {% extends theme("layout.html") %}
 
+{% from form.meta_template import meta_editor %}
 {# Import macros data_editor and extra_head from content_form's template.
    extra_head is optional, so instead of a simple "import from" we need to do
    this manually #}
@@ -52,8 +53,9 @@
     {% if form['content_form'].help %}
         <pre id="moin-editor-help">{{ form['content_form'].help }}</pre>
     {% endif %}
+    {{ meta_editor(form['meta_form']) }}
     <dl>
-        {{ forms.render(form['meta_text']) }}
+        {{ forms.render(form['extra_meta_text']) }}
     </dl>
     {#
     {{ gen.textarea(form['meta_text'], lang='en', dir='ltr', rows=rows_meta, cols=cols) }}