2 Controller: CaseTypeCtrl
3 Required vars: caseType
8 <th>{{:: ts('Display Label') }}
</th>
9 <th>{{:: ts('Assign to Creator') }}
</th>
10 <th>{{:: ts('Is Manager') }}
</th>
11 <th>{{:: ts('Restrict to Groups') }}
</th>
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'">
17 <!-- display label (client-perspective) -->
18 <td>{{relType.displayLabel}}
</td>
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>
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"
26 <a crm-icon=
"fa-trash" class=
"crm-hover-button" ng-click=
"removeItem(caseType.definition.caseRoles,relType)" title=
"{{:: ts('Remove') }}"></a>
35 crm-options=
"relationshipTypeOptions"
37 crm-on-add=
"addRole(caseType.definition.caseRoles, newRole)"
38 placeholder=
"{{:: ts('Add role') }}"