Skip to content
Browse files

use correct intendation

  • Loading branch information...
1 parent 82af040 commit 6bda12da10b6b3219b5140398340adb6896d56d5 @FinalAngel FinalAngel committed Jan 18, 2013
Showing with 23 additions and 24 deletions.
  1. +23 −24 cms/templates/admin/cms/page/includes/fieldset.html
View
47 cms/templates/admin/cms/page/includes/fieldset.html
@@ -1,28 +1,27 @@
<fieldset class="module aligned {{ fieldset.classes }}">
- {% if fieldset.name %}<h2>{{ fieldset.name }}</h2>{% endif %}
- {% if fieldset.description %}
- <div class="description">{{ fieldset.description|safe }}</div>
- {% endif %}
- {% for line in fieldset %}
- <div class="form-row{% if line.errors %} errors{% endif %}{% for field in line %} {{ field.field.name }}{% endfor %}">
- {{ line.errors }}
- {% for field in line %}
- {% if not field.field.is_hidden %}
- <div{% if not line.fields|length_is:"1" %} class="field-box"{% endif %}>{% endif %}
- {% if field.is_checkbox %}
- {{ field.field }}{{ field.label_tag }}
- {% else %}
- {% if field.field.is_hidden %}
+ {% if fieldset.name %}<h2>{{ fieldset.name }}</h2>{% endif %}
+ {% if fieldset.description %}<div class="description">{{ fieldset.description|safe }}</div>{% endif %}
+ {% for line in fieldset %}
+ <div class="form-row{% if line.errors %} errors{% endif %}{% for field in line %} {{ field.field.name }}{% endfor %}">
+ {{ line.errors }}
+ {% for field in line %}
+ {% if not field.field.is_hidden %}
+ <div{% if not line.fields|length_is:"1" %} class="field-box"{% endif %}>
+ {% endif %}
+ {% if field.is_checkbox %}
+ {{ field.field }}{{ field.label_tag }}
+ {% else %}
+ {% if field.field.is_hidden %}
{{ field.field }}
{% else %}
- {{ field.label_tag }}{{ field.field }}
- {% endif %}
- {% endif %}
- {% if not field.field.is_hidden %}
- {% if field.field.field.help_text %}<p class="help">{{ field.field.field.help_text|safe }}</p>{% endif %}
- </div>
- {% endif %}
- {% endfor %}
- </div>
- {% endfor %}
+ {{ field.label_tag }}{{ field.field }}
+ {% endif %}
+ {% endif %}
+ {% if not field.field.is_hidden %}
+ {% if field.field.field.help_text %}<p class="help">{{ field.field.field.help_text|safe }}</p>{% endif %}
+ </div>
+ {% endif %}
+ {% endfor %}
+ </div>
+ {% endfor %}
</fieldset>

0 comments on commit 6bda12d

Please sign in to comment.
Something went wrong with that request. Please try again.