Commit | Line | Data |
---|---|---|
4c58e251 TO |
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> | |
dc7a657e | 20 | <input type="number" ng-model="activityType.max_instances" /> |
4c58e251 TO |
21 | </td> |
22 | <td> | |
059cd0c2 TO |
23 | <a class="crm-hover-button" ng-click="removeItem(caseType.definition.activityTypes, activityType)"> |
24 | <span class="icon delete-icon" title="Remove"></span> | |
25 | </a> | |
4c58e251 TO |
26 | </td> |
27 | </tr> | |
d7c25f6c TO |
28 | <tr class="addRow"> |
29 | <td colspan="3"> | |
95fd24c0 TO |
30 | <div crm-add-name |
31 | crm-options="activityTypeNames" | |
32 | crm-var="newActivity" | |
33 | crm-on-add="addActivityType(newActivity)" | |
34 | /> | |
d7c25f6c TO |
35 | </td> |
36 | </tr> | |
4c58e251 TO |
37 | </tbody> |
38 | </table> |