Commits

Ralph Bean committed 106220a

dos2unix pass.

  • Participants
  • Parent commits 1d56681

Comments (0)

Files changed (2)

File 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">
-      <p>
-         ${w.help_msg}
-      </p>
-     </div>
-     % endif
-  <fieldset>
-    % if w.legend:
-      <legend>${w.legend}</legend>
-    % endif
-
-    ${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>
-    </div>
-  </fieldset>
-</form>
+<%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">
+      <p>
+         ${w.help_msg}
+      </p>
+     </div>
+     % endif
+  <fieldset>
+    % if w.legend:
+      <legend>${w.legend}</legend>
+    % endif
+
+    ${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>
+    </div>
+  </fieldset>
+</form>

File 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):
-  <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>
-    </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>
-  % endif
+<%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):
+  <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>
+    </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>
+  % endif