crmCaseType/list.html - Autoformat
authorTim Otten <totten@civicrm.org>
Thu, 10 Jul 2014 08:10:22 +0000 (01:10 -0700)
committerTim Otten <totten@civicrm.org>
Thu, 10 Jul 2014 08:14:14 +0000 (01:14 -0700)
partials/crmCaseType/list.html

index 316d9a5eaa818b24d213c7fe4b8bfea1be2bf864..dd74351809fc7637b182d4a7e4be4ac12ce864e4 100644 (file)
@@ -8,47 +8,57 @@ Required vars: caseTypes
 
 <table class="display">
   <thead>
-         <tr>
-           <th>Title</th>
-           <th>Name</th>
-           <th>Description</th>
-           <th>Enabled?</th>
-           <th></th>
-         </tr>
+  <tr>
+    <th>Title</th>
+    <th>Name</th>
+    <th>Description</th>
+    <th>Enabled?</th>
+    <th></th>
+  </tr>
   </thead>
-       <tbody>
-         <tr ng-repeat="caseType in caseTypes"
-        class="crm-entity"
-        ng-class-even="'even-row even'"
-        ng-class-odd="'odd-row odd'"
-        ng-class="{disabled: 0==caseType.is_active}">
-           <td>{{caseType.title}}</td>
-           <td>{{caseType.name}}</td>
-           <td>{{caseType.description}}</td>
-           <td>{{caseType.is_active == 1 ? 'Yes' : 'No'}}</td>
-           <!-- FIXME: Can't figure out how styling in other tables gets the nowrap effect... in absence of a consistent fix, KISS -->
-           <td style="white-space: nowrap">
-             <span>
-               <a class="action-item crm-hover-button" ng-href="#/caseType/{{caseType.id}}">Edit</a>
+  <tbody>
+  <tr ng-repeat="caseType in caseTypes"
+      class="crm-entity"
+      ng-class-even="'even-row even'"
+      ng-class-odd="'odd-row odd'"
+      ng-class="{disabled: 0==caseType.is_active}">
+    <td>{{caseType.title}}</td>
+    <td>{{caseType.name}}</td>
+    <td>{{caseType.description}}</td>
+    <td>{{caseType.is_active == 1 ? 'Yes' : 'No'}}</td>
+    <!-- FIXME: Can't figure out how styling in other tables gets the nowrap effect... in absence of a consistent fix, KISS -->
+    <td style="white-space: nowrap">
+      <span>
+             <a class="action-item crm-hover-button" ng-href="#/caseType/{{caseType.id}}">Edit</a>
 
-               <span class="btn-slide crm-hover-button">
-                 more
-                 <ul class="panel" style="display: none;">
-                   <li ng-hide="caseType.is_active">
-                     <a class="action-item crm-hover-button" ng-click="toggleCaseType(caseType)">Enable</a>
-                   </li>
-                   <li ng-show="caseType.is_active">
-                <a class="action-item crm-hover-button" crm-confirm="{type: 'disable', obj: caseType}" on-yes="toggleCaseType(caseType)">Disable</a>
-                   </li>
-                   <li>
-                <a class="action-item crm-hover-button" crm-confirm="{type: 'delete', obj: caseType}" on-yes="deleteCaseType(caseType)">Delete</a>
-                   </li>
-                 </ul>
-               </span>
+             <span class="btn-slide crm-hover-button">
+               more
+               <ul class="panel" style="display: none;">
+            <li ng-hide="caseType.is_active">
+              <a class="action-item crm-hover-button" ng-click="toggleCaseType(caseType)">
+                Enable
+              </a>
+            </li>
+            <li ng-show="caseType.is_active">
+              <a class="action-item crm-hover-button"
+                 crm-confirm="{type: 'disable', obj: caseType}"
+                 on-yes="toggleCaseType(caseType)">
+                Disable
+              </a>
+            </li>
+            <li>
+              <a class="action-item crm-hover-button"
+                 crm-confirm="{type: 'delete', obj: caseType}"
+                 on-yes="deleteCaseType(caseType)">
+                Delete
+              </a>
+            </li>
+          </ul>
              </span>
-           </td>
-         </tr>
-       </tbody>
+           </span>
+    </td>
+  </tr>
+  </tbody>
 </table>
 
 <div class="crm-submit-buttons">