Commit | Line | Data |
---|---|---|
4c58e251 TO |
1 | <!-- |
2 | Controller: CaseTypeCtrl | |
3 | Required vars: activitySet | |
4 | --> | |
5 | <table> | |
6 | <thead> | |
7 | <tr> | |
8 | <th>Activity Type</th> | |
9 | <th></th> | |
10 | </tr> | |
11 | </thead> | |
12 | ||
c45daff0 | 13 | <tbody ui-sortable ng-model="activitySet.activityTypes"> |
4c58e251 | 14 | <tr ng-repeat="activity in activitySet.activityTypes"> |
c45daff0 TO |
15 | <td> |
16 | <span class="icon ui-icon-grip-dotted-vertical"></span> | |
17 | {{ activity.name }} | |
18 | </td> | |
4c58e251 | 19 | <td> |
059cd0c2 TO |
20 | <a class="crm-hover-button" ng-click="removeItem(activitySet.activityTypes, activity)"> |
21 | <span class="icon delete-icon" title="Remove"></span> | |
22 | </a> | |
4c58e251 TO |
23 | </td> |
24 | </tr> | |
c45daff0 TO |
25 | </tbody> |
26 | ||
27 | <tfoot> | |
95fd24c0 TO |
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="addActivity(activitySet, newActivity)" | |
34 | /> | |
35 | </td> | |
36 | </tr> | |
c45daff0 | 37 | </tfoot> |
4c58e251 | 38 | </table> |