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 | ||
c45daff0 | 14 | <tbody ui-sortable ng-model="caseType.definition.activityTypes"> |
4c58e251 TO |
15 | <tr ng-repeat="activityType in caseType.definition.activityTypes"> |
16 | <td> | |
c45daff0 | 17 | <span class="icon ui-icon-grip-dotted-vertical"></span> |
4c58e251 TO |
18 | {{ activityType.name }} |
19 | </td> | |
20 | <td> | |
dc7a657e | 21 | <input type="number" ng-model="activityType.max_instances" /> |
4c58e251 TO |
22 | </td> |
23 | <td> | |
059cd0c2 TO |
24 | <a class="crm-hover-button" ng-click="removeItem(caseType.definition.activityTypes, activityType)"> |
25 | <span class="icon delete-icon" title="Remove"></span> | |
26 | </a> | |
4c58e251 TO |
27 | </td> |
28 | </tr> | |
c45daff0 TO |
29 | </tbody> |
30 | ||
31 | <tfoot> | |
d7c25f6c TO |
32 | <tr class="addRow"> |
33 | <td colspan="3"> | |
95fd24c0 TO |
34 | <div crm-add-name |
35 | crm-options="activityTypeNames" | |
36 | crm-var="newActivity" | |
37 | crm-on-add="addActivityType(newActivity)" | |
38 | /> | |
d7c25f6c TO |
39 | </td> |
40 | </tr> | |
c45daff0 | 41 | </tfoot> |
4c58e251 | 42 | </table> |