Merge in 5.22
[civicrm-core.git] / ang / crmCaseType / rolesTable.html
CommitLineData
4c58e251
TO
1<!--
2Controller: CaseTypeCtrl
3Required vars: caseType
4-->
5<table>
6 <thead>
599e58a9 7 <tr>
a2055470 8 <th>{{ts('Display Label')}}</th>
7abbf317
CW
9 <th>{{ts('Assign to Creator')}}</th>
10 <th>{{ts('Is Manager')}}</th>
9c7ffe36 11 <th>{{ts('Restrict to Groups')}}</th>
599e58a9
DG
12 <th></th>
13 </tr>
4c58e251
TO
14 </thead>
15 <tbody>
2058bf54 16 <tr ng-repeat="relType in caseType.definition.caseRoles | orderBy:'displayLabel'" ng-class-even="'crm-entity even-row even'" ng-class-odd="'crm-entity odd-row odd'">
bb8b702c 17 <!-- display label (client-perspective) -->
671a5fef 18 <td>{{relType.displayLabel}}</td>
239ee7d9
TO
19 <td><input type="checkbox" ng-model="relType.creator" ng-true-value="'1'" ng-false-value="'0'"></td>
20 <td><input type="radio" ng-model="relType.manager" value="1" ng-change="onManagerChange(relType)"></td>
9c7ffe36
CW
21 <td><input ng-list class="big"
22 crm-entityref="{entity: 'Group', api: {id_field: 'name', params: {is_hidden: 0, is_active: 1}}, select: {allowClear: true, multiple: true, placeholder: ts('Select Group')}}"
23 ng-model="relType.groups"
24 /></td>
599e58a9 25 <td>
77ec5a8d 26 <a crm-icon="fa-trash" class="crm-hover-button" ng-click="removeItem(caseType.definition.caseRoles,relType)" title="{{ts('Remove')}}"></a>
599e58a9
DG
27 </td>
28 </tr>
4c58e251 29 </tbody>
8c7e0ae8
TO
30
31 <tfoot>
599e58a9
DG
32 <tr class="addRow">
33 <td colspan="4">
599e58a9 34 <span crm-add-name
4324b8d7 35 crm-options="relationshipTypeOptions"
599e58a9
DG
36 crm-var="newRole"
37 crm-on-add="addRole(caseType.definition.caseRoles, newRole)"
00eee619 38 placeholder="{{ts('Add role')}}"
239ee7d9 39 ></span>
599e58a9
DG
40 </td>
41 </tr>
8c7e0ae8 42 </tfoot>
4c58e251 43</table>