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