changeset 2356:92fb82ba5906

Basic meta forms and the extra metadata(JSON) now sidebyside, all textareas
author sharky93 <rishabhr123@gmail.com>
date Fri, 26 Jul 2013 03:16:51 +0530
parents 92dacdb1beda
children 20ba81bbe10a
files MoinMoin/templates/basic.js MoinMoin/themes/basic/templates/modify.html MoinMoin/themes/basic/templates/modify_meta.html
diffstat 3 files changed, 12 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/templates/basic.js	Fri Jul 26 00:27:36 2013 +0530
+++ b/MoinMoin/templates/basic.js	Fri Jul 26 03:16:51 2013 +0530
@@ -1,5 +1,5 @@
 $(document).ready(function (){
     // this depends on the id's used for different tab-panes in modify.html (Basic Theme)
     $('#meta, #help').removeClass('active');
-    $('#f_content_form_data_text, #f_extra_meta_text').autosize();
+    $('textarea').autosize();
 });
--- a/MoinMoin/themes/basic/templates/modify.html	Fri Jul 26 00:27:36 2013 +0530
+++ b/MoinMoin/themes/basic/templates/modify.html	Fri Jul 26 03:16:51 2013 +0530
@@ -32,10 +32,16 @@
                 {{ basic_data_editor(form['content_form'], item_name, class='input-block-level') }}
             </div>
             <div class="tab-pane active" id="meta">
-                {{ basic_meta_editor(form['meta_form']) }}
-                {% set field = form['extra_meta_text'] %}
-                {{ gen.label(field) }}
-                {{ gen.textarea(field, rows=field.properties.rows|string, cols=field.properties.cols|string, class='span6') }}
+                <div class="row-fluid">
+                    <div class="span6">
+                        {{ basic_meta_editor(form['meta_form']) }}
+                    </div>
+                    {% set field = form['extra_meta_text'] %}
+                    <div class="span6">
+                        {{ gen.label(field) }}
+                        {{ gen.textarea(field, rows=field.properties.rows|string, cols=field.properties.cols|string, class='span11') }}
+                    </div>
+                </div>
             </div>
             <div class="tab-pane active" id="help">
                 {% if form['content_form'].help %}
--- a/MoinMoin/themes/basic/templates/modify_meta.html	Fri Jul 26 00:27:36 2013 +0530
+++ b/MoinMoin/themes/basic/templates/modify_meta.html	Fri Jul 26 03:16:51 2013 +0530
@@ -9,7 +9,7 @@
         ] %}
         <div class="control-group">
             {{ gen.label(form[e]) }}
-            {{ gen.input(form[e], type="text") }}
+            {{ gen.textarea(form[e], rows='1', class='span10') }}
         </div>
     {% endfor %}
 {% endmacro %}