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