2 Controller: CaseTypeListsCtrl
3 Required vars: caseTypes
5 <h1 crm-page-title
>{{ts('Case Types')}}
</h1>
8 {{ts('A Case Type describes a group of related tasks, interactions, or processes.')}}
11 <div class=
"crm-content-block crm-block">
13 <table class=
"display">
16 <th>{{ts('Title')}}
</th>
17 <th>{{ts('Name')}}
</th>
18 <th>{{ts('Description')}}
</th>
19 <th>{{ts('Enabled?')}}
</th>
24 <tr ng-repeat=
"caseType in caseTypes"
26 ng-class-even=
"'even-row even'"
27 ng-class-odd=
"'odd-row odd'"
28 ng-class=
"{disabled: 0==caseType.is_active, forked: 1==caseType.is_forked}">
29 <td>{{caseType.title}}
</td>
30 <td>{{caseType.name}}
</td>
31 <td>{{caseType.description}}
</td>
32 <td>{{caseType.is_active ==
1 ? ts('Yes') : ts('No')}}
</td>
33 <!-- FIXME: Can't figure out how styling in other tables gets the nowrap effect... in absence of a consistent fix, KISS -->
34 <td style=
"white-space: nowrap">
36 <a class=
"action-item crm-hover-button" ng-href=
"#/caseType/{{caseType.id}}">{{ts('Edit')}}
</a>
38 <span class=
"btn-slide crm-hover-button" ng-show=
"!caseType.is_reserved || (!caseType.is_active || caseType.is_forked)">
40 <ul class=
"panel" style=
"display: none;">
41 <li ng-hide=
"caseType.is_active">
42 <a class=
"action-item crm-hover-button" ng-click=
"toggleCaseType(caseType)">
46 <li ng-show=
"caseType.is_active && !caseType.is_reserved">
47 <a class=
"action-item crm-hover-button"
48 crm-confirm=
"{type: 'disable', obj: caseType}"
49 on-yes=
"toggleCaseType(caseType)">
53 <li ng-show=
"caseType.is_forked">
54 <a class=
"action-item crm-hover-button"
55 crm-confirm=
"{type: 'revert', obj: caseType}"
56 on-yes=
"revertCaseType(caseType)">
60 <li ng-show=
"!caseType.is_reserved">
61 <a class=
"action-item crm-hover-button"
62 crm-confirm=
"{type: 'delete', obj: caseType}"
63 on-yes=
"deleteCaseType(caseType)">
75 <div class=
"crm-submit-buttons">
76 <a ng-href=
"#/caseType/new" class=
"button"><span><i class=
"crm-i fa-plus-circle"></i> {{ts('New Case Type')}}
</span></a>