CRM-15960 test
[civicrm-core.git] / partials / crmCaseType / timelineTable.html
CommitLineData
4c58e251
TO
1<!--
2Controller: CaseTypeCtrl
3Required vars: activitySet
4-->
5<table>
6 <thead>
7 <tr>
8b3f1203 8 <th>Activity</th>
4c58e251
TO
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>
29d7a6e7 24 <select
a2e9f07c
TO
25 ui-jq="select2"
26 ui-options="{dropdownAutoWidth : true}"
29d7a6e7 27 ng-model="activity.status"
28 ng-options="actStatus.name as actStatus.name for actStatus in activityStatuses|orderBy:'name'"
29 >
24f6e9ac 30 <option value=""></option>
dc7a657e 31 </select>
4c58e251
TO
32 </td>
33 <td>
29d7a6e7 34 <select
a2e9f07c
TO
35 ui-jq="select2"
36 ui-options="{dropdownAutoWidth : true}"
29d7a6e7 37 ng-model="activity.reference_activity"
816d449e 38 ng-options="actTypeName as actTypeName for actTypeName in activityTypeNames"
29d7a6e7 39 ng-hide="activity.name == 'Open Case'"
773632ed 40 ng-required="activity.name != 'Open Case'"
29d7a6e7 41 >
dc7a657e 42 </select>
4c58e251
TO
43 </td>
44 <td>
29d7a6e7 45 <input
46 class="number"
47 type="text"
ba0fd8dd 48 ng-pattern="/^-?[0-9]*$/"
29d7a6e7 49 ng-model="activity.reference_offset"
50 ng-hide="activity.name == 'Open Case'"
773632ed 51 ng-required="activity.name != 'Open Case'"
29d7a6e7 52 />
4c58e251
TO
53 </td>
54 <td>
29d7a6e7 55 <select
a2e9f07c
TO
56 ui-jq="select2"
57 ui-options="{dropdownAutoWidth : true}"
29d7a6e7 58 ng-model="activity.reference_select"
59 ng-options="key as value for (key,value) in {newest: 'Newest', oldest: 'Oldest'}"
60 ng-hide="activity.name == 'Open Case'"
773632ed 61 ng-required="activity.name != 'Open Case'"
29d7a6e7 62 >
dc7a657e 63 </select>
4c58e251
TO
64 </td>
65 <td>
259a7652
TO
66 <a class="crm-hover-button"
67 ng-show="isActivityRemovable(activitySet, activity)"
68 ng-click="removeItem(activitySet.activityTypes, activity)">
059cd0c2
TO
69 <span class="icon delete-icon" title="Remove"></span>
70 </a>
4c58e251
TO
71 </td>
72 </tr>
c45daff0
TO
73 </tbody>
74
75 <tfoot>
95fd24c0
TO
76 <tr class="addRow">
77 <td colspan="6">
8b3f1203
TO
78 Add activity:
79 <span crm-add-name
95fd24c0
TO
80 crm-options="activityTypeNames"
81 crm-var="newActivity"
82 crm-on-add="addActivity(activitySet, newActivity)"
83 />
84 </td>
85 </tr>
c45daff0 86 </tfoot>
4c58e251 87</table>