api4 - Enable services
[civicrm-core.git] / ang / crmCaseType / rolesTable.html
1 <!--
2 Controller: CaseTypeCtrl
3 Required vars: caseType
4 -->
5 <table>
6 <thead>
7 <tr>
8 <th>{{ts('Name')}}</th>
9 <th>{{ts('Assign to Creator')}}</th>
10 <th>{{ts('Is Manager')}}</th>
11 <th></th>
12 </tr>
13 </thead>
14 <tbody>
15 <tr ng-repeat="relType in caseType.definition.caseRoles | orderBy:'name'" ng-class-even="'crm-entity even-row even'" ng-class-odd="'crm-entity odd-row odd'">
16 <!-- display label (client-perspective) -->
17 <td>{{relType.displaylabel}}</td>
18 <td><input type="checkbox" ng-model="relType.creator" ng-true-value="'1'" ng-false-value="'0'"></td>
19 <td><input type="radio" ng-model="relType.manager" value="1" ng-change="onManagerChange(relType)"></td>
20 <td>
21 <a crm-icon="fa-trash" class="crm-hover-button" ng-click="removeItem(caseType.definition.caseRoles,relType)" title="{{ts('Remove')}}"></a>
22 </td>
23 </tr>
24 </tbody>
25
26 <tfoot>
27 <tr class="addRow">
28 <td colspan="4">
29 <span crm-add-name
30 crm-options="relationshipTypeOptions"
31 crm-var="newRole"
32 crm-on-add="addRole(caseType.definition.caseRoles, newRole)"
33 placeholder="{{ts('Add role')}}"
34 ></span>
35 </td>
36 </tr>
37 </tfoot>
38 </table>