diff MoinMoin/themes/basic/templates/modify.html @ 2761:31628ac3ec21

mass correction of indentation on many templates
author RogerHaase <haaserd@gmail.com>
date Sun, 24 Aug 2014 08:39:32 -0700
parents 0c8b5e6868ec
children dde7055f4361
line wrap: on
line diff
--- a/MoinMoin/themes/basic/templates/modify.html	Wed Aug 20 14:24:38 2014 -0700
+++ b/MoinMoin/themes/basic/templates/modify.html	Sun Aug 24 08:39:32 2014 -0700
@@ -20,80 +20,80 @@
 {% endblock %}
 
 {% block views %}
-{{ itemviews }}
+    {{ itemviews }}
 {% endblock %}
 
 {% block content %}
-<h1>{{ title }}</h1>
-<div id="moin-modify" class="moin-form">
-    {{ gen.form.open(form, method='post', enctype='multipart/form-data') }}
-    {{ forms.render_errors(form) }}
-    {{ forms.render_errors(form['meta_form']['acl']) }}
-    {#
-       Workaround:
-       For *Draw content, hide submit button and form['comment'], since *Draw
-       POSTs originate from their respective applets.
-    #}
-    <ul class="moin-nav nav-tabs moin-shadow">
-        <li class="active"><a href="#editor" data-toggle="tab">Edit Content</a></li>
-        <li><a href="#meta" data-toggle="tab">Edit Meta</a></li>
-        {% if user.may.admin(fqname) %}
-            <li><a href="#acl" data-toggle="tab">Edit ACL</a></li>
-        {% endif %}
-        <li><a href="#help" data-toggle="tab">Help</a></li>
-    </ul>
-    <div class="tab-content">
-        <div class="tab-pane active" id="editor">
-            {{ data_editor(form['content_form'], item_name) }}
-        </div>
-        <div class="tab-pane active" id="meta">
-            <div class="row">
-                <div class="col-lg-6">
-                    {{ basic_meta_editor(form['meta_form']) }}
+    <h1>{{ title }}</h1>
+    <div id="moin-modify" class="moin-form">
+        {{ gen.form.open(form, method='post', enctype='multipart/form-data') }}
+            {{ forms.render_errors(form) }}
+            {{ forms.render_errors(form['meta_form']['acl']) }}
+            {#
+               Workaround:
+               For *Draw content, hide submit button and form['comment'], since *Draw
+               POSTs originate from their respective applets.
+            #}
+            <ul class="moin-nav nav-tabs moin-shadow">
+                <li class="active"><a href="#editor" data-toggle="tab">Edit Content</a></li>
+                <li><a href="#meta" data-toggle="tab">Edit Meta</a></li>
+                {% if user.may.admin(fqname) %}
+                    <li><a href="#acl" data-toggle="tab">Edit ACL</a></li>
+                {% endif %}
+                <li><a href="#help" data-toggle="tab">Help</a></li>
+            </ul>
+            <div class="tab-content">
+                <div class="tab-pane active" id="editor">
+                    {{ data_editor(form['content_form'], item_name) }}
                 </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='form-control') }}
-                    </div>
-                </div>
-            </div>
-        </div>
-        {% if user.may.admin(fqname) %}
-            <div class="tab-pane active" id="acl">
-                <div class="row">
-                    {% set field = form['meta_form']['acl'] %}
-                    <div class="col-lg-6">
-                        <div class="form-group">
-                            {{ gen.label(field) }}
-                            {{ gen.textarea(field, rows='1', class='form-control') }}
+                <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='form-control') }}
+                            </div>
                         </div>
                     </div>
                 </div>
+                {% if user.may.admin(fqname) %}
+                    <div class="tab-pane active" id="acl">
+                        <div class="row">
+                            {% set field = form['meta_form']['acl'] %}
+                            <div class="col-lg-6">
+                                <div class="form-group">
+                                    {{ gen.label(field) }}
+                                    {{ gen.textarea(field, rows='1', class='form-control') }}
+                                </div>
+                            </div>
+                        </div>
+                    </div>
+                {% endif %}
+                <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>
-        {% endif %}
-        <div class="tab-pane active" id="help">
-            {% if form['content_form'].help %}
-                <pre id="moin-editor-help">{{ form['content_form'].help }}</pre>
+            {#
+            {{ gen.textarea(form['meta_text'], lang='en', dir='ltr', rows=rows_meta, cols=cols) }}
+            <br />
+            {{ forms.render_errors(form['meta_text']) }}
+            #}
+            {% if not form['content_form'].is_draw %}
+                <div class="form-group">
+                    {{ forms.render_textcha(gen, form) }}
+                    {{ 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 %}
-        </div>
+
+        {{ gen.form.close() }}
     </div>
-    {#
-    {{ gen.textarea(form['meta_text'], lang='en', dir='ltr', rows=rows_meta, cols=cols) }}
-    <br />
-    {{ forms.render_errors(form['meta_text']) }}
-    #}
-    {% if not form['content_form'].is_draw %}
-    <div class="form-group">
-        {{ forms.render_textcha(gen, form) }}
-        {{ 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() }}
-</div>
 {% endblock %}