Merge pull request #16733 from eileenmcnaughton/smarty
[civicrm-core.git] / ang / crmCaseType / rolesTable.html
index 8af3b488c4f9ad0b039062f842fdc5f49d2a1d1a..ce8765a62f0ac4517cb124e52e77d1359bfca11c 100644 (file)
@@ -5,9 +5,10 @@ Required vars: caseType
 <table>
   <thead>
          <tr>
-           <th>{{ts('Display Label')}}</th>
-           <th>{{ts('Assign to Creator')}}</th>
-           <th>{{ts('Is Manager')}}</th>
+           <th>{{:: ts('Display Label') }}</th>
+           <th>{{:: ts('Assign to Creator') }}</th>
+           <th>{{:: ts('Is Manager') }}</th>
+           <th>{{:: ts('Restrict to Groups') }}</th>
            <th></th>
          </tr>
   </thead>
@@ -17,8 +18,12 @@ Required vars: caseType
            <td>{{relType.displayLabel}}</td>
            <td><input type="checkbox" ng-model="relType.creator" ng-true-value="'1'" ng-false-value="'0'"></td>
            <td><input type="radio" ng-model="relType.manager" value="1" ng-change="onManagerChange(relType)"></td>
+           <td><input ng-list class="big"
+                               crm-entityref="{entity: 'Group', api: {id_field: 'name', params: {is_hidden: 0, is_active: 1}}, select: {allowClear: true, multiple: true, placeholder: ts('Select Group')}}"
+                               ng-model="relType.groups"
+                       /></td>
            <td>
-             <a crm-icon="fa-trash" class="crm-hover-button" ng-click="removeItem(caseType.definition.caseRoles,relType)" title="{{ts('Remove')}}"></a>
+             <a crm-icon="fa-trash" class="crm-hover-button" ng-click="removeItem(caseType.definition.caseRoles,relType)" title="{{:: ts('Remove') }}"></a>
            </td>
          </tr>
   </tbody>
@@ -30,7 +35,7 @@ Required vars: caseType
                   crm-options="relationshipTypeOptions"
                   crm-var="newRole"
                   crm-on-add="addRole(caseType.definition.caseRoles, newRole)"
-             placeholder="{{ts('Add role')}}"
+             placeholder="{{:: ts('Add role') }}"
                      ></span>
            </td>
          </tr>