CRM-14483 - crmCaseType - Implement row addition for activity sets
[civicrm-core.git] / partials / crmCaseType / activityTypesTable.html
1 <!--
2 Controller: CaseTypeCtrl
3 Required vars: caseType
4 -->
5 <table>
6 <thead>
7 <tr>
8 <th>Activity Type</th>
9 <th>Max Instances</th>
10 <th></th>
11 </tr>
12 </thead>
13
14 <tbody>
15 <tr ng-repeat="activityType in caseType.definition.activityTypes">
16 <td>
17 {{ activityType.name }}
18 </td>
19 <td>
20 <input type="number" ng-model="activityType.max_instances" />
21 </td>
22 <td>
23 <a class="crm-hover-button" ng-click="removeItem(caseType.definition.activityTypes, activityType)">
24 <span class="icon delete-icon" title="Remove"></span>
25 </a>
26 </td>
27 </tr>
28 <tr class="addRow">
29 <td colspan="3">
30 <div crm-add-name
31 crm-options="activityTypeNames"
32 crm-var="newActivity"
33 crm-on-add="addActivityType(newActivity)"
34 />
35 </td>
36 </tr>
37 </tbody>
38 </table>