reverted changes
[civicrm-core.git] / ang / crmCaseType / timelineTable.html
CommitLineData
4c58e251
TO
1<!--
2Controller: CaseTypeCtrl
3Required vars: activitySet
4-->
5<table>
6 <thead>
7 <tr>
7abbf317
CW
8 <th>{{ts('Activity')}}</th>
9 <th>{{ts('Status')}}</th>
10 <th>{{ts('Reference')}}</th>
11 <th>{{ts('Offset')}}</th>
12 <th>{{ts('Select')}}</th>
4c58e251
TO
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 66 <a class="crm-hover-button"
3e5e512f 67 crm-icon="trash"
259a7652 68 ng-show="isActivityRemovable(activitySet, activity)"
3e5e512f 69 ng-click="removeItem(activitySet.activityTypes, activity)"
7abbf317 70 title="{{ts('Remove')}}">
059cd0c2 71 </a>
4c58e251
TO
72 </td>
73 </tr>
c45daff0
TO
74 </tbody>
75
76 <tfoot>
95fd24c0
TO
77 <tr class="addRow">
78 <td colspan="6">
8b3f1203 79 <span crm-add-name
95fd24c0
TO
80 crm-options="activityTypeNames"
81 crm-var="newActivity"
82 crm-on-add="addActivity(activitySet, newActivity)"
00eee619 83 placeholder="{{ts('Add activity')}}"
95fd24c0
TO
84 />
85 </td>
86 </tr>
c45daff0 87 </tfoot>
4c58e251 88</table>