CustomGroup - Add metadata about how a custom group relates to entity types
[civicrm-core.git] / ext / civigrant / managed / SavedSearch_CiviGrant_Summary.mgd.php
1 <?php
2 use CRM_Grant_ExtensionUtil as E;
3
4 return [
5 [
6 'name' => 'SavedSearch_CiviGrant_Summary',
7 'entity' => 'SavedSearch',
8 'cleanup' => 'always',
9 'update' => 'unmodified',
10 'params' => [
11 'version' => 4,
12 'values' => [
13 'name' => 'CiviGrant_Summary',
14 'label' => E::ts('CiviGrant Summary'),
15 'form_values' => NULL,
16 'search_custom_id' => NULL,
17 'api_entity' => 'Grant',
18 'api_params' => [
19 'version' => 4,
20 'select' => [
21 'status_id:label',
22 'grant_type_id:label',
23 'amount_total',
24 'amount_granted',
25 'application_received_date',
26 'grant_report_received',
27 'money_transfer_date',
28 ],
29 'orderBy' => [],
30 'where' => [],
31 'groupBy' => [],
32 'join' => [],
33 'having' => [],
34 ],
35 'expires_date' => NULL,
36 'description' => NULL,
37 'mapping_id' => NULL,
38 ],
39 ],
40 ],
41 [
42 'name' => 'SavedSearch_CiviGrant_Summary_SearchDisplay_Grant_Tab',
43 'entity' => 'SearchDisplay',
44 'cleanup' => 'always',
45 'update' => 'unmodified',
46 'params' => [
47 'version' => 4,
48 'values' => [
49 'name' => 'Grant_Tab',
50 'label' => E::ts('Grant Tab'),
51 'saved_search_id.name' => 'CiviGrant_Summary',
52 'type' => 'table',
53 'settings' => [
54 'actions' => FALSE,
55 'limit' => 50,
56 'classes' => [
57 'table',
58 'table-striped',
59 ],
60 'pager' => [
61 'show_count' => TRUE,
62 'expose_limit' => TRUE,
63 ],
64 'sort' => [],
65 'columns' => [
66 [
67 'type' => 'field',
68 'key' => 'status_id:label',
69 'dataType' => 'Integer',
70 'label' => E::ts('Status'),
71 'sortable' => TRUE,
72 ],
73 [
74 'type' => 'field',
75 'key' => 'grant_type_id:label',
76 'dataType' => 'Integer',
77 'label' => E::ts('Type'),
78 'sortable' => TRUE,
79 ],
80 [
81 'type' => 'field',
82 'key' => 'amount_total',
83 'dataType' => 'Money',
84 'label' => E::ts('Requested'),
85 'sortable' => TRUE,
86 ],
87 [
88 'type' => 'field',
89 'key' => 'amount_granted',
90 'dataType' => 'Money',
91 'label' => E::ts('Granted'),
92 'sortable' => TRUE,
93 ],
94 [
95 'type' => 'field',
96 'key' => 'application_received_date',
97 'dataType' => 'Date',
98 'label' => E::ts('Application received'),
99 'sortable' => TRUE,
100 ],
101 [
102 'type' => 'field',
103 'key' => 'grant_report_received',
104 'dataType' => 'Boolean',
105 'label' => E::ts('Report received'),
106 'sortable' => TRUE,
107 ],
108 [
109 'type' => 'field',
110 'key' => 'money_transfer_date',
111 'dataType' => 'Date',
112 'label' => E::ts('Money transferred'),
113 'sortable' => TRUE,
114 ],
115 [
116 'size' => 'btn-xs',
117 'links' => [
118 [
119 'entity' => 'Grant',
120 'action' => 'view',
121 'join' => '',
122 'target' => 'crm-popup',
123 'icon' => 'fa-external-link',
124 'text' => E::ts('View'),
125 'style' => 'default',
126 ],
127 [
128 'entity' => 'Grant',
129 'action' => 'update',
130 'join' => '',
131 'target' => 'crm-popup',
132 'icon' => 'fa-pencil',
133 'text' => E::ts('Edit'),
134 'style' => 'default',
135 ],
136 [
137 'entity' => 'Grant',
138 'action' => 'delete',
139 'join' => '',
140 'target' => 'crm-popup',
141 'icon' => 'fa-trash',
142 'text' => E::ts('Delete'),
143 'style' => 'danger',
144 ],
145 ],
146 'type' => 'buttons',
147 'alignment' => 'text-right',
148 ],
149 ],
150 ],
151 'acl_bypass' => FALSE,
152 ],
153 ],
154 ],
155 ];