CRM-14857 - provide option to add membership type and membership org filters to reports.
[civicrm-core.git] / partials / crmCaseType / timelineTable.html
1 <!--
2 Controller: CaseTypeCtrl
3 Required vars: activitySet
4 -->
5 <table>
6 <thead>
7 <tr>
8 <th>Activity</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
17 <tbody ui-sortable ng-model="activitySet.activityTypes">
18 <tr ng-repeat="activity in activitySet.activityTypes">
19 <td>
20 <span class="icon ui-icon-grip-dotted-vertical"></span>
21 {{ activity.name }}
22 </td>
23 <td>
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>
28 </td>
29 <td>
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>
33 </td>
34 <td>
35 <input class="number" type="text" ng-pattern="/^[0-9]*$/" ng-model="activity.reference_offset" />
36 </td>
37 <td>
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>
41 </td>
42 <td>
43 <a class="crm-hover-button" ng-click="removeItem(activitySet.activityTypes, activity)">
44 <span class="icon delete-icon" title="Remove"></span>
45 </a>
46 </td>
47 </tr>
48 </tbody>
49
50 <tfoot>
51 <tr class="addRow">
52 <td colspan="6">
53 Add activity:
54 <span crm-add-name
55 crm-options="activityTypeNames"
56 crm-var="newActivity"
57 crm-on-add="addActivity(activitySet, newActivity)"
58 />
59 </td>
60 </tr>
61 </tfoot>
62 </table>