summaryrefslogtreecommitdiff
path: root/www/crm/wp-content/plugins/civicrm/civicrm/ang/crmCaseType/rolesTable.html
diff options
context:
space:
mode:
Diffstat (limited to 'www/crm/wp-content/plugins/civicrm/civicrm/ang/crmCaseType/rolesTable.html')
-rw-r--r--www/crm/wp-content/plugins/civicrm/civicrm/ang/crmCaseType/rolesTable.html38
1 files changed, 38 insertions, 0 deletions
diff --git a/www/crm/wp-content/plugins/civicrm/civicrm/ang/crmCaseType/rolesTable.html b/www/crm/wp-content/plugins/civicrm/civicrm/ang/crmCaseType/rolesTable.html
new file mode 100644
index 00000000..e7edee07
--- /dev/null
+++ b/www/crm/wp-content/plugins/civicrm/civicrm/ang/crmCaseType/rolesTable.html
@@ -0,0 +1,38 @@
+<!--
+Controller: CaseTypeCtrl
+Required vars: caseType
+-->
+<table>
+ <thead>
+ <tr>
+ <th>{{ts('Name')}}</th>
+ <th>{{ts('Assign to Creator')}}</th>
+ <th>{{ts('Is Manager')}}</th>
+ <th></th>
+ </tr>
+ </thead>
+ <tbody>
+ <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'">
+ <!-- display label (client-perspective) -->
+ <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>
+ <a crm-icon="fa-trash" class="crm-hover-button" ng-click="removeItem(caseType.definition.caseRoles,relType)" title="{{ts('Remove')}}"></a>
+ </td>
+ </tr>
+ </tbody>
+
+ <tfoot>
+ <tr class="addRow">
+ <td colspan="4">
+ <span crm-add-name
+ crm-options="relationshipTypeOptions"
+ crm-var="newRole"
+ crm-on-add="addRole(caseType.definition.caseRoles, newRole)"
+ placeholder="{{ts('Add role')}}"
+ ></span>
+ </td>
+ </tr>
+ </tfoot>
+</table>