dev/core#218 : On Case Type listing page, for reserved ones the, 'More' link don...
[civicrm-core.git] / ang / crmCaseType / timelineTable.html
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>{{ts('Status')}}</th>
11 <th>{{ts('Reference')}}</th>
12 <th>{{ts('Offset')}}</th>
13 <th>{{ts('Select')}}</th>
14 <th></th>
15 </tr>
16 </thead>
17
18 <tbody ui-sortable ng-model="activitySet.activityTypes">
19 <tr ng-repeat="activity in activitySet.activityTypes">
20 <td>
21 <i class="crm-i fa-arrows grip-n-drag"></i>
22 </td>
23 <td>
24 <i class="crm-i {{ activityTypes[activity.name].icon }}"></i>
25 {{ activity.label }}
26 </td>
27 <td>
28 <select
29 ui-jq="select2"
30 ui-options="{dropdownAutoWidth : true}"
31 ng-model="activity.status"
32 ng-options="actStatus.name as actStatus.label for actStatus in activityStatuses|orderBy:'label'"
33 >
34 <option value=""></option>
35 </select>
36 </td>
37 <td>
38 <select
39 ui-jq="select2"
40 ui-options="{dropdownAutoWidth : true}"
41 ng-model="activity.reference_activity"
42 ng-options="activityType.name as activityType.label for activityType in activitySet.activityTypes"
43 >
44 <option value="">-- Case Start --</option>
45 </select>
46 </td>
47 <td>
48 <input
49 class="number crm-form-text"
50 type="text"
51 ng-pattern="/^-?[0-9]*$/"
52 ng-model="activity.reference_offset"
53 >
54 </td>
55 <td>
56 <select
57 ui-jq="select2"
58 ui-options="{dropdownAutoWidth : true}"
59 ng-model="activity.reference_select"
60 ng-options="key as value for (key,value) in {newest: ts('Newest'), oldest: ts('Oldest')}"
61 >
62 </select>
63 </td>
64 <td>
65 <a class="crm-hover-button"
66 crm-icon="fa-trash"
67 ng-show="isActivityRemovable(activitySet, activity)"
68 ng-click="removeItem(activitySet.activityTypes, activity)"
69 title="{{ts('Remove')}}">
70 </a>
71 </td>
72 </tr>
73 </tbody>
74
75 <tfoot>
76 <tr class="addRow">
77 <td colspan="6">
78 <span crm-add-name=""
79 crm-options="activityTypeOptions"
80 crm-var="newActivity"
81 crm-on-add="addActivity(activitySet, newActivity)"
82 placeholder="{{ts('Add activity')}}"
83 ></span>
84 </td>
85 </tr>
86 </tfoot>
87 </table>