Commits

Ralph Bean committed b7eacff

Indentation.

Comments (0)

Files changed (2)

tw2/bootstrap/templates/horizontal_form.mak

 <%namespace name="tw" module="tw2.core.mako_util"/>\
 <form ${tw.attrs(attrs=w.attrs)}>
-     <span class="error">${w.error_msg or ''}</span>
-     % if w.help_msg:
-     <div class="help">
+  <span class="error">${w.error_msg or ''}</span>
+  % if w.help_msg:
+    <div class="help">
       <p>
-         ${w.help_msg}
+        ${w.help_msg}
       </p>
-     </div>
-     % endif
+    </div>
+  % endif
   <fieldset>
     % if w.legend:
       <legend>${w.legend}</legend>
 
     ${w.child.display() | n}
     <div class="form-actions">
-        % for button in w.buttons:
-            ${button.display() | n}
-        % endfor
-##        <button type="submit" class="btn btn-primary">Save changes</button>
-##        <button class="btn">Cancel</button>
+      % for button in w.buttons:
+        ${button.display() | n}
+      % endfor
     </div>
   </fieldset>
 </form>

tw2/bootstrap/templates/horizontal_layout.mak

 <%namespace name="tw" module="tw2.core.mako_util"/>
-
-   % for c in w.children_hidden:
-    ${c.display() | n}
-   % endfor
-
-  % for i, c in enumerate(w.children_non_hidden):
+% for c in w.children_hidden:
+  ${c.display() | n}
+% endfor
+% for i, c in enumerate(w.children_non_hidden):
   <div \
-class="control-group ${(getattr(c, 'required', False) and ' required' or '') + (c.error_msg and ' error' or '')}" \
-     % if w.hover_help and c.help_text:
-title="${c.help_text}" \
-     % endif
-${tw.attrs(attrs=c.container_attrs)} \
->
-      <label class="control-label" for="${c.compound_id or ''}">${c.label or ''}</label>
-      <div class="controls">
-        ${c.display() | n}
-        % if c.error_msg:
-          <span id="${c.compound_id or ''}:error" class="error help-inline">${c.error_msg or ''}</span>
-        % endif
-        % if not w.hover_help and c.help_text:
-          <p class="help-block">${c.help_text or ''}</p>
-        % endif
-      </div>
+    class="control-group ${(getattr(c, 'required', False) and ' required' or '') + (c.error_msg and ' error' or '')}" \
+    % if w.hover_help and c.help_text:
+      title="${c.help_text}" \
+    % endif
+    ${tw.attrs(attrs=c.container_attrs)} \
+    >
+    <label class="control-label" for="${c.compound_id or ''}">${c.label or ''}</label>
+    <div class="controls">
+      ${c.display() | n}
+      % if c.error_msg:
+        <span id="${c.compound_id or ''}:error" class="error help-inline">${c.error_msg or ''}</span>
+      % endif
+      % if not w.hover_help and c.help_text:
+        <p class="help-block">${c.help_text or ''}</p>
+      % endif
     </div>
-  % endfor
-  % if w.rollup_errors:
-    <div class="control-group error">
-##      <label class="control-label" for="input01">Text input</label>
-      <div id="${w.compound_id or ''}:error" class="controls error">
-        % for error in w.rollup_errors:
-          <p class="help-block">${error}</p>
-        % endfor
-      </div>
+  </div>
+% endfor
+% if w.rollup_errors:
+  <div class="control-group error">
+    <div id="${w.compound_id or ''}:error" class="controls error">
+      % for error in w.rollup_errors:
+        <p class="help-block">${error}</p>
+      % endfor
     </div>
-  % endif
+  </div>
+% endif