Commit | Line | Data |
---|---|---|
4c58e251 TO |
1 | <!-- |
2 | Controller: CaseTypeCtrl | |
3 | Required vars: activitySet | |
4 | --> | |
5 | <table> | |
6 | <thead> | |
7 | <tr> | |
4324b8d7 | 8 | <th></th> |
f9c5f498 | 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> |
13a3d214 | 17 | <i class="crm-i fa-arrows grip-n-drag" aria-hidden="true"></i> |
4324b8d7 CW |
18 | </td> |
19 | <td> | |
13a3d214 | 20 | <i class="crm-i {{ activityTypes[activity.name].icon }}" aria-hidden="true"></i> |
c45daff0 TO |
21 | {{ activity.name }} |
22 | </td> | |
4c58e251 | 23 | <td> |
f9c5f498 | 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)" | |
f9c5f498 | 36 | placeholder="{{:: ts('Add activity') }}" |
39f837dc | 37 | ></span> |
95fd24c0 TO |
38 | </td> |
39 | </tr> | |
c45daff0 | 40 | </tfoot> |
4c58e251 | 41 | </table> |