Commit | Line | Data |
---|---|---|
b75c2546 TO |
1 | <!-- |
2 | Controller: CaseTypeListsCtrl | |
3 | Required vars: caseTypes | |
4 | --> | |
1dda695b | 5 | <div class="help"> |
7abbf317 | 6 | {{ts('A Case Type describes a group of related tasks, interactions, or processes.')}} |
84b27ea4 | 7 | </div> |
87dcd909 | 8 | |
599e58a9 | 9 | <table class="display"> |
84b27ea4 | 10 | <thead> |
381c06c2 | 11 | <tr> |
7abbf317 CW |
12 | <th>{{ts('Title')}}</th> |
13 | <th>{{ts('Name')}}</th> | |
14 | <th>{{ts('Description')}}</th> | |
15 | <th>{{ts('Enabled?')}}</th> | |
381c06c2 TO |
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> | |
7abbf317 | 28 | <td>{{caseType.is_active == 1 ? ts('Yes') : ts('No')}}</td> |
381c06c2 TO |
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> | |
7abbf317 | 32 | <a class="action-item crm-hover-button" ng-href="#/caseType/{{caseType.id}}">{{ts('Edit')}}</a> |
4b8c8b42 | 33 | |
67d7f7b0 | 34 | <span class="btn-slide crm-hover-button"> |
7abbf317 | 35 | {{ts('more')}} |
67d7f7b0 | 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)"> | |
7abbf317 | 39 | {{ts('Enable')}} |
381c06c2 TO |
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)"> | |
7abbf317 | 46 | {{ts('Disable')}} |
381c06c2 TO |
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)"> | |
7abbf317 | 53 | {{ts('Revert')}} |
470a458e TO |
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)"> | |
7abbf317 | 60 | {{ts('Delete')}} |
381c06c2 TO |
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 | 71 | <div class="crm-submit-buttons"> |
7abbf317 | 72 | <a ng-href="#/caseType/new" class="button"><span><div class="icon ui-icon-circle-plus"></div>{{ts('New Case Type')}}</span></a> |
84b27ea4 | 73 | </div> |