Commit | Line | Data |
---|---|---|
4c58e251 TO |
1 | <!-- |
2 | Controller: CaseTypeCtrl | |
3 | Required vars: activitySet | |
4 | --> | |
5 | <table> | |
6 | <thead> | |
7 | <tr> | |
7abbf317 | 8 | <th>{{ts('Activity')}}</th> |
4c58e251 TO |
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> |
7abbf317 | 20 | <a crm-icon="trash" class="crm-hover-button" ng-click="removeItem(activitySet.activityTypes, activity)" title="{{ts('Remove')}}"></a> |
4c58e251 TO |
21 | </td> |
22 | </tr> | |
c45daff0 TO |
23 | </tbody> |
24 | ||
25 | <tfoot> | |
95fd24c0 TO |
26 | <tr class="addRow"> |
27 | <td colspan="3"> | |
8b3f1203 | 28 | <span crm-add-name |
95fd24c0 TO |
29 | crm-options="activityTypeNames" |
30 | crm-var="newActivity" | |
31 | crm-on-add="addActivity(activitySet, newActivity)" | |
00eee619 | 32 | placeholder="{{ts('Add activity')}}" |
95fd24c0 TO |
33 | /> |
34 | </td> | |
35 | </tr> | |
c45daff0 | 36 | </tfoot> |
4c58e251 | 37 | </table> |