| 1 | <!-- |
| 2 | Controller: CaseTypeCtrl |
| 3 | Required vars: activitySet |
| 4 | --> |
| 5 | <table> |
| 6 | <thead> |
| 7 | <tr> |
| 8 | <th>{{ts('Activity')}}</th> |
| 9 | <th></th> |
| 10 | </tr> |
| 11 | </thead> |
| 12 | |
| 13 | <tbody ui-sortable ng-model="activitySet.activityTypes"> |
| 14 | <tr ng-repeat="activity in activitySet.activityTypes"> |
| 15 | <td> |
| 16 | <span class="icon ui-icon-grip-dotted-vertical"></span> |
| 17 | {{ activity.name }} |
| 18 | </td> |
| 19 | <td> |
| 20 | <a crm-icon="trash" class="crm-hover-button" ng-click="removeItem(activitySet.activityTypes, activity)" title="{{ts('Remove')}}"></a> |
| 21 | </td> |
| 22 | </tr> |
| 23 | </tbody> |
| 24 | |
| 25 | <tfoot> |
| 26 | <tr class="addRow"> |
| 27 | <td colspan="3"> |
| 28 | <span crm-add-name |
| 29 | crm-options="activityTypeNames" |
| 30 | crm-var="newActivity" |
| 31 | crm-on-add="addActivity(activitySet, newActivity)" |
| 32 | placeholder="{{ts('Add activity')}}" |
| 33 | /> |
| 34 | </td> |
| 35 | </tr> |
| 36 | </tfoot> |
| 37 | </table> |