mirror of
https://codeberg.org/artfulrobot/contactcats.git
synced 2025-07-17 01:27:17 +02:00
SK/FB work
This commit is contained in:
parent
16f2b6235d
commit
a4c9251f5e
10 changed files with 163 additions and 233 deletions
|
@ -19,11 +19,7 @@ return [
|
|||
'id',
|
||||
'contact_sub_type:label',
|
||||
'display_name',
|
||||
'Contact_ContactCategory_contact_id_01.category:label',
|
||||
'Synopsis_Fields.Amount_of_last_contribution',
|
||||
'Synopsis_Fields.Date_of_Last_Contribution',
|
||||
'Synopsis_Fields.Total_Lifetime_Contributions',
|
||||
'Synopsis_Fields.Total_count_of_contributions',
|
||||
'Contact_ContactCategory_contact_id_01_ContactCategory_ContactCategoryDefinition_category_definition_id_01.label',
|
||||
],
|
||||
'orderBy' => [],
|
||||
'where' => [
|
||||
|
@ -43,6 +39,25 @@ return [
|
|||
'=',
|
||||
'Contact_ContactCategory_contact_id_01.contact_id',
|
||||
],
|
||||
[
|
||||
'Contact_ContactCategory_contact_id_01.id',
|
||||
'=',
|
||||
'id',
|
||||
],
|
||||
],
|
||||
[
|
||||
'ContactCategoryDefinition AS Contact_ContactCategory_contact_id_01_ContactCategory_ContactCategoryDefinition_category_definition_id_01',
|
||||
'INNER',
|
||||
[
|
||||
'Contact_ContactCategory_contact_id_01.category_definition_id',
|
||||
'=',
|
||||
'Contact_ContactCategory_contact_id_01_ContactCategory_ContactCategoryDefinition_category_definition_id_01.id',
|
||||
],
|
||||
[
|
||||
'Contact_ContactCategory_contact_id_01_ContactCategory_ContactCategoryDefinition_category_definition_id_01.id',
|
||||
'=',
|
||||
'Contact_ContactCategory_contact_id_01.category_definition_id',
|
||||
],
|
||||
],
|
||||
],
|
||||
'having' => [],
|
||||
|
@ -77,13 +92,6 @@ return [
|
|||
'pager' => [],
|
||||
'placeholder' => 5,
|
||||
'columns' => [
|
||||
[
|
||||
'type' => 'field',
|
||||
'key' => 'Contact_ContactCategory_contact_id_01.category:label',
|
||||
'dataType' => 'Integer',
|
||||
'label' => E::ts('Category'),
|
||||
'sortable' => TRUE,
|
||||
],
|
||||
[
|
||||
'type' => 'field',
|
||||
'key' => 'display_name',
|
||||
|
@ -108,34 +116,10 @@ return [
|
|||
],
|
||||
[
|
||||
'type' => 'field',
|
||||
'key' => 'Synopsis_Fields.Total_Lifetime_Contributions',
|
||||
'dataType' => 'Money',
|
||||
'label' => E::ts('£ total'),
|
||||
'key' => 'Contact_ContactCategory_contact_id_01_ContactCategory_ContactCategoryDefinition_category_definition_id_01.label',
|
||||
'dataType' => 'String',
|
||||
'label' => E::ts('Category'),
|
||||
'sortable' => TRUE,
|
||||
'alignment' => 'text-right',
|
||||
],
|
||||
[
|
||||
'type' => 'field',
|
||||
'key' => 'Synopsis_Fields.Total_count_of_contributions',
|
||||
'dataType' => 'Integer',
|
||||
'label' => E::ts('Count donations'),
|
||||
'sortable' => TRUE,
|
||||
'alignment' => 'text-right',
|
||||
],
|
||||
[
|
||||
'type' => 'field',
|
||||
'key' => 'Synopsis_Fields.Date_of_Last_Contribution',
|
||||
'dataType' => 'Timestamp',
|
||||
'label' => E::ts('Latest donation'),
|
||||
'sortable' => TRUE,
|
||||
],
|
||||
[
|
||||
'type' => 'field',
|
||||
'key' => 'Synopsis_Fields.Amount_of_last_contribution',
|
||||
'dataType' => 'Money',
|
||||
'label' => E::ts('£ latest'),
|
||||
'sortable' => TRUE,
|
||||
'alignment' => 'text-right',
|
||||
],
|
||||
],
|
||||
'actions' => TRUE,
|
||||
|
@ -143,9 +127,11 @@ return [
|
|||
'table-striped',
|
||||
],
|
||||
'headerCount' => TRUE,
|
||||
'actions_display_mode' => 'menu',
|
||||
],
|
||||
],
|
||||
'match' => [
|
||||
'saved_search_id',
|
||||
'name',
|
||||
],
|
||||
],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue