Commit | Line | Data |
---|---|---|
4c58e251 TO |
1 | <!-- |
2 | Controller: CaseTypeCtrl | |
3 | Required vars: activitySet | |
4 | --> | |
5 | <table> | |
6 | <thead> | |
7 | <tr> | |
4324b8d7 | 8 | <th></th> |
7abbf317 | 9 | <th>{{ts('Activity')}}</th> |
4c58e251 TO |
10 | <th></th> |
11 | </tr> | |
12 | </thead> | |
13 | ||
c45daff0 | 14 | <tbody ui-sortable ng-model="activitySet.activityTypes"> |
4c58e251 | 15 | <tr ng-repeat="activity in activitySet.activityTypes"> |
c45daff0 | 16 | <td> |
77ec5a8d | 17 | <i class="crm-i fa-arrows grip-n-drag"></i> |
4324b8d7 CW |
18 | </td> |
19 | <td> | |
20 | <i class="crm-i {{ activityTypes[activity.name].icon }}"></i> | |
c45daff0 TO |
21 | {{ activity.name }} |
22 | </td> | |
4c58e251 | 23 | <td> |
77ec5a8d | 24 | <a crm-icon="fa-trash" class="crm-hover-button" ng-click="removeItem(activitySet.activityTypes, activity)" title="{{ts('Remove')}}"></a> |
4c58e251 TO |
25 | </td> |
26 | </tr> | |
c45daff0 TO |
27 | </tbody> |
28 | ||
29 | <tfoot> | |
95fd24c0 TO |
30 | <tr class="addRow"> |
31 | <td colspan="3"> | |
8b3f1203 | 32 | <span crm-add-name |
4324b8d7 | 33 | crm-options="activityTypeOptions" |
95fd24c0 TO |
34 | crm-var="newActivity" |
35 | crm-on-add="addActivity(activitySet, newActivity)" | |
00eee619 | 36 | placeholder="{{ts('Add activity')}}" |
95fd24c0 TO |
37 | /> |
38 | </td> | |
39 | </tr> | |
c45daff0 | 40 | </tfoot> |
4c58e251 | 41 | </table> |