CRM-15097 - crmCaseType - If a case-type isn't forkable, then don't allow editing...
[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'"
24 ng-class="{disabled: 0==caseType.is_active}">
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>
49 <li>
50 <a class="action-item crm-hover-button"
51 crm-confirm="{type: 'delete', obj: caseType}"
52 on-yes="deleteCaseType(caseType)">
53 Delete
54 </a>
55 </li>
56 </ul>
67d7f7b0
TO
57 </span>
58 </span>
381c06c2
TO
59 </td>
60 </tr>
61 </tbody>
84b27ea4 62</table>
63
599e58a9
DG
64<div class="crm-submit-buttons">
65 <a ng-href="#/caseType/new" class="button"><span><div class="icon add-icon"></div>New Case Type</span></a>
84b27ea4 66</div>