changeset 2336:f844f7307aa6

tabbable grouping of meta in editor
author sharky93 <rishabhr123@gmail.com>
date Tue, 23 Jul 2013 20:19:21 +0530
parents acddea75972b
children 7c01aeab600c
files MoinMoin/themes/basic/templates/modify.html MoinMoin/themes/basic/templates/modify_meta.html
diffstat 2 files changed, 30 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/themes/basic/templates/modify.html	Tue Jul 23 18:03:23 2013 +0530
+++ b/MoinMoin/themes/basic/templates/modify.html	Tue Jul 23 20:19:21 2013 +0530
@@ -1,4 +1,6 @@
 {% extends "modify.html" %}
+{% from theme("modify_meta.html") import basic_meta_editor %}
+
 
 {% block content %}
 <h2>{{ title }}</h2>
@@ -21,10 +23,20 @@
     {% 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['extra_meta_text'], class='span6') }}
-    </dl>
+    <div class="tabbable tabs-left">
+        <ul class="nav nav-tabs">
+            <li class="active"><a href="#gmeta" data-toggle="tab">General Meta</a></li>
+            <li><a href="#emeta" data-toggle="tab">Extra Meta</a></li>
+        </ul>
+        <div class="tab-content">
+            <div class="tab-pane active" id="gmeta">
+                {{ basic_meta_editor(form['meta_form']) }}
+            </div>
+            <div class="tab-pane" id="emeta">
+                {{ forms.render(form['extra_meta_text'], class='span6') }}
+            </div>
+        </div>
+    </div> <!-- left tabbable -->
     {#
     {{ gen.textarea(form['meta_text'], lang='en', dir='ltr', rows=rows_meta, cols=cols) }}
     <br />
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MoinMoin/themes/basic/templates/modify_meta.html	Tue Jul 23 20:19:21 2013 +0530
@@ -0,0 +1,14 @@
+{% import "forms.html" as forms %}
+
+{% macro basic_meta_editor(form) %}
+    <dl>
+        {% for e in [
+            'itemtype',
+            'contenttype',
+            'summary',
+            'tags',
+            ] %}
+            {{ forms.render(form[e]) }}
+        {% endfor %}
+    </dl>
+{% endmacro %}