CRM-15578 - Remove crmMailing
[civicrm-core.git] / partials / crmCaseType / list.html
CommitLineData
b75c2546
TO
1<!--
2Controller: CaseTypeListsCtrl
3Required vars: caseTypes
4-->
84b27ea4 5<div id="help">
6 A Case Type describes a group of related tasks, interactions, or processes.
7</div>
87dcd909 8
599e58a9 9<table class="display">
84b27ea4 10 <thead>
381c06c2
TO
11 <tr>
12 <th>Title</th>
13 <th>Name</th>
14 <th>Description</th>
15 <th>Enabled?</th>
16 <th></th>
17 </tr>
84b27ea4 18 </thead>
381c06c2
TO
19 <tbody>
20 <tr ng-repeat="caseType in caseTypes"
21 class="crm-entity"
22 ng-class-even="'even-row even'"
23 ng-class-odd="'odd-row odd'"
470a458e 24 ng-class="{disabled: 0==caseType.is_active, forked: 1==caseType.is_forked}">
381c06c2
TO
25 <td>{{caseType.title}}</td>
26 <td>{{caseType.name}}</td>
27 <td>{{caseType.description}}</td>
28 <td>{{caseType.is_active == 1 ? 'Yes' : 'No'}}</td>
29 <!-- FIXME: Can't figure out how styling in other tables gets the nowrap effect... in absence of a consistent fix, KISS -->
30 <td style="white-space: nowrap">
31 <span>
67d7f7b0 32 <a class="action-item crm-hover-button" ng-href="#/caseType/{{caseType.id}}">Edit</a>
4b8c8b42 33
67d7f7b0
TO
34 <span class="btn-slide crm-hover-button">
35 more
36 <ul class="panel" style="display: none;">
381c06c2
TO
37 <li ng-hide="caseType.is_active">
38 <a class="action-item crm-hover-button" ng-click="toggleCaseType(caseType)">
39 Enable
40 </a>
41 </li>
42 <li ng-show="caseType.is_active">
43 <a class="action-item crm-hover-button"
44 crm-confirm="{type: 'disable', obj: caseType}"
45 on-yes="toggleCaseType(caseType)">
46 Disable
47 </a>
48 </li>
470a458e
TO
49 <li ng-show="caseType.is_forked">
50 <a class="action-item crm-hover-button"
51 crm-confirm="{type: 'revert', obj: caseType}"
52 on-yes="revertCaseType(caseType)">
53 Revert
54 </a>
55 </li>
381c06c2
TO
56 <li>
57 <a class="action-item crm-hover-button"
58 crm-confirm="{type: 'delete', obj: caseType}"
59 on-yes="deleteCaseType(caseType)">
60 Delete
61 </a>
62 </li>
63 </ul>
67d7f7b0
TO
64 </span>
65 </span>
381c06c2
TO
66 </td>
67 </tr>
68 </tbody>
84b27ea4 69</table>
70
599e58a9
DG
71<div class="crm-submit-buttons">
72 <a ng-href="#/caseType/new" class="button"><span><div class="icon add-icon"></div>New Case Type</span></a>
84b27ea4 73</div>