Commit | Line | Data |
---|---|---|
4c58e251 TO |
1 | <!-- |
2 | Controller: CaseTypeCtrl | |
3 | Required vars: activitySet | |
4 | --> | |
5 | <table> | |
6 | <thead> | |
7 | <tr> | |
8 | <th>Activity Type</th> | |
9 | <th>Status</th> | |
10 | <th>Reference</th> | |
11 | <th>Offset</th> | |
12 | <th>Select</th> | |
13 | <th></th> | |
14 | </tr> | |
15 | </thead> | |
16 | ||
c45daff0 | 17 | <tbody ui-sortable ng-model="activitySet.activityTypes"> |
4c58e251 TO |
18 | <tr ng-repeat="activity in activitySet.activityTypes"> |
19 | <td> | |
c45daff0 | 20 | <span class="icon ui-icon-grip-dotted-vertical"></span> |
4c58e251 TO |
21 | {{ activity.name }} |
22 | </td> | |
23 | <td> | |
dc7a657e TO |
24 | <!-- <select ng-model="activity.status" ng-options="value for (key,value) in activityStatuses|orderBy:'value'"> --> |
25 | <select ng-model="activity.status" ng-options="actStatus.name as actStatus.name for actStatus in activityStatuses|orderBy:'name'"> | |
26 | <option value=""></option> | |
27 | </select> | |
4c58e251 TO |
28 | </td> |
29 | <td> | |
dc7a657e TO |
30 | <select ng-model="activity.reference_activity" ng-options="actType.name as actType.name for actType in activityTypes|orderBy:'name'"> |
31 | <option value=""></option> | |
32 | </select> | |
4c58e251 TO |
33 | </td> |
34 | <td> | |
dc7a657e | 35 | <input type="number" ng-model="activity.reference_offset" /> |
4c58e251 TO |
36 | </td> |
37 | <td> | |
dc7a657e TO |
38 | <select ng-model="activity.reference_select" ng-options="key as value for (key,value) in {newest: 'Newest', oldest: 'Oldest'}"> |
39 | <option value=""></option> | |
40 | </select> | |
4c58e251 TO |
41 | </td> |
42 | <td> | |
059cd0c2 TO |
43 | <a class="crm-hover-button" ng-click="removeItem(activitySet.activityTypes, activity)"> |
44 | <span class="icon delete-icon" title="Remove"></span> | |
45 | </a> | |
4c58e251 TO |
46 | </td> |
47 | </tr> | |
c45daff0 TO |
48 | </tbody> |
49 | ||
50 | <tfoot> | |
95fd24c0 TO |
51 | <tr class="addRow"> |
52 | <td colspan="6"> | |
53 | <div crm-add-name | |
54 | crm-options="activityTypeNames" | |
55 | crm-var="newActivity" | |
56 | crm-on-add="addActivity(activitySet, newActivity)" | |
57 | /> | |
58 | </td> | |
59 | </tr> | |
c45daff0 | 60 | </tfoot> |
4c58e251 | 61 | </table> |