changeset 2366:15501d0c9254

Fixes modify view for boostrap v3
author sharky93 <rishabhr123@gmail.com>
date Wed, 07 Aug 2013 20:03:41 +0530
parents 9f4e725f9868
children 31df8e9e720f
files MoinMoin/themes/basic/templates/modify.html MoinMoin/themes/basic/templates/modify_meta.html
diffstat 2 files changed, 31 insertions(+), 28 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/themes/basic/templates/modify.html	Wed Aug 07 19:38:08 2013 +0530
+++ b/MoinMoin/themes/basic/templates/modify.html	Wed Aug 07 20:03:41 2013 +0530
@@ -21,45 +21,48 @@
        For *Draw content, hide submit button and form['comment'], since *Draw
        POSTs originate from their respective applets.
     #}
-    <div class="tabbable tabs-right">
-        <ul class="nav nav-tabs">
-            <li class="active"><a href="#editor" data-toggle="tab">Edit Content</a></li>
-            <li><a href="#meta" data-toggle="tab">Edit Meta</a></li>
-            <li><a href="#help" data-toggle="tab">Help</a></li>
-        </ul>    
-        <div class="tab-content">
-            <div class="tab-pane active" id="editor">
-                {{ basic_data_editor(form['content_form'], item_name, class='input-block-level') }}
-            </div>
-            <div class="tab-pane active" id="meta">
-                <div class="row-fluid">
-                    <div class="span6">
-                        {{ basic_meta_editor(form['meta_form']) }}
-                    </div>
-                    {% set field = form['extra_meta_text'] %}
-                    <div class="span6">
+    <ul class="moin-nav nav-tabs">
+        <li class="active"><a href="#editor" data-toggle="tab">Edit Content</a></li>
+        <li><a href="#meta" data-toggle="tab">Edit Meta</a></li>
+        <li><a href="#help" data-toggle="tab">Help</a></li>
+    </ul>    
+    <div class="tab-content">
+        <div class="tab-pane active" id="editor">
+            {{ basic_data_editor(form['content_form'], item_name, class='form-control') }}
+        </div>
+        <div class="tab-pane active" id="meta">
+            <div class="row">
+                <div class="col-lg-6">
+                    {{ basic_meta_editor(form['meta_form']) }}
+                </div>
+                {% set field = form['extra_meta_text'] %}
+                <div class="col-lg-6">
+                    <div class="form-group">
                         {{ gen.label(field) }}
-                        {{ gen.textarea(field, rows=field.properties.rows|string, cols=field.properties.cols|string, class='span11') }}
+                        {{ gen.textarea(field, rows=field.properties.rows|string, cols=field.properties.cols|string, class='form-control') }}
                     </div>
                 </div>
             </div>
-            <div class="tab-pane active" id="help">
-                {% if form['content_form'].help %}
-                    <pre id="moin-editor-help">{{ form['content_form'].help }}</pre>
-                {% endif %}
-            </div>
         </div>
-    </div> <!-- left tabbable -->
+        <div class="tab-pane active" id="help">
+            {% if form['content_form'].help %}
+                <pre id="moin-editor-help">{{ form['content_form'].help }}</pre>
+            {% endif %}
+        </div>
+    </div>
     {#
     {{ gen.textarea(form['meta_text'], lang='en', dir='ltr', rows=rows_meta, cols=cols) }}
     <br />
     {{ forms.render_errors(form['meta_text']) }}
     #}
-    <br />                
     {% if not form['content_form'].is_draw %}
+    <div class="form-group">
         {{ forms.render_textcha(gen, form) }}
-        {{ gen.input(form['comment'], type="text", class="input-block-level") }}
+        {{ gen.input(form['comment'], type="text", class="form-control") }}
+    </div>
+    <div class="form-group">
         {{ forms.render_submit(form, value='Save', class='btn btn-primary', id='moin-save-text-button') }}
+    </div>
     {% endif %}
 
     {{ gen.form.close() }}
--- a/MoinMoin/themes/basic/templates/modify_meta.html	Wed Aug 07 19:38:08 2013 +0530
+++ b/MoinMoin/themes/basic/templates/modify_meta.html	Wed Aug 07 20:03:41 2013 +0530
@@ -7,9 +7,9 @@
         'summary',
         'tags',
         ] %}
-        <div class="control-group">
+        <div class="form-group">
             {{ gen.label(form[e]) }}
-            {{ gen.textarea(form[e], rows='1', class='span10') }}
+            {{ gen.textarea(form[e], rows='1', class='form-control') }}
         </div>
     {% endfor %}
 {% endmacro %}