Skip to content

Commit

Permalink
replace json with .php files and run civix export
Browse files Browse the repository at this point in the history
  • Loading branch information
jitendrapurohit committed Jan 9, 2024
1 parent 9a9688d commit 8387a9a
Show file tree
Hide file tree
Showing 6 changed files with 103 additions and 118 deletions.
32 changes: 0 additions & 32 deletions ext/civicrm_admin_ui/ang/afformTabMember.aff.json

This file was deleted.

24 changes: 24 additions & 0 deletions ext/civicrm_admin_ui/ang/afformTabMember.aff.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php
use CRM_CivicrmAdminUi_ExtensionUtil as E;

return [
'type' => 'search',
'title' => E::ts('Memberships'),
'placement' => [
'contact_summary_tab',
],
'summary_contact_type' => [
'Organization',
],
'summary_weight' => 30,
'icon' => 'fa-id-badge',
'permission' => [
'access CiviCRM',
'access CiviMember',
],
'search_displays' => [
'Contact_Summary_Memberships.Contact_Summary_Memberships_Active',
'Contact_Summary_Memberships.Contact_Summary_Memberships_Inactive',
'Contact_Summary_Membership_Type.Contact_Summary_Membership_Type',
],
];
33 changes: 0 additions & 33 deletions ext/civicrm_admin_ui/ang/afsearchTabMember.aff.json

This file was deleted.

24 changes: 24 additions & 0 deletions ext/civicrm_admin_ui/ang/afsearchTabMember.aff.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php
use CRM_CivicrmAdminUi_ExtensionUtil as E;

return [
'type' => 'search',
'title' => E::ts('Memberships'),
'placement' => [
'contact_summary_tab',
],
'summary_contact_type' => [
'Individual',
'Household',
],
'summary_weight' => 30,
'icon' => 'fa-id-badge',
'permission' => [
'access CiviCRM',
'access CiviMember',
],
'search_displays' => [
'Contact_Summary_Memberships.Contact_Summary_Memberships_Active',
'Contact_Summary_Memberships.Contact_Summary_Memberships_Inactive',
],
];
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
<?php
use CRM_CivicrmAdminUi_ExtensionUtil as E;

return [
[
'name' => 'SavedSearch_Contact_Summary_Membership_Type',
'entity' => 'SavedSearch',
'cleanup' => 'always',
'cleanup' => 'unused',
'update' => 'unmodified',
'params' => [
'version' => 4,
'values' => [
'name' => 'Contact_Summary_Membership_Type',
'label' => ts('Contact Summary Membership Type'),
'label' => E::ts('Contact Summary Membership Type'),
'api_entity' => 'MembershipType',
'api_params' => [
'version' => 4,
Expand Down Expand Up @@ -44,17 +45,17 @@
[
'name' => 'SavedSearch_Contact_Summary_Membership_Type_SearchDisplay_Contact_Summary_Membership_Type',
'entity' => 'SearchDisplay',
'cleanup' => 'always',
'cleanup' => 'unused',
'update' => 'unmodified',
'params' => [
'version' => 4,
'values' => [
'name' => 'Contact_Summary_Membership_Type',
'label' => ts('Contact Summary Membership Type'),
'label' => E::ts('Contact Summary Membership Type'),
'saved_search_id.name' => 'Contact_Summary_Membership_Type',
'type' => 'table',
'settings' => [
'description' => ts('The following Membership Types are associated with this organization. Click Members for a listing of all contacts who have memberships of that type. Click Edit to modify the settings for that type.'),
'description' => E::ts('The following Membership Types are associated with this organization. Click Members for a listing of all contacts who have memberships of that type. Click Edit to modify the settings for that type.'),
'sort' => [],
'limit' => 50,
'pager' => [
Expand All @@ -66,43 +67,43 @@
'type' => 'field',
'key' => 'name',
'dataType' => 'String',
'label' => ts('Name'),
'label' => E::ts('Name'),
'sortable' => TRUE,
],
[
'type' => 'field',
'key' => 'period_type:label',
'dataType' => 'String',
'label' => ts('Period'),
'label' => E::ts('Period'),
'sortable' => TRUE,
],
[
'type' => 'field',
'key' => 'fixed_period_start_day',
'dataType' => 'Integer',
'label' => ts('Fixed Start'),
'label' => E::ts('Fixed Start'),
'sortable' => TRUE,
],
[
'type' => 'field',
'key' => 'minimum_fee',
'dataType' => 'Money',
'label' => ts('Minimum Fee'),
'label' => E::ts('Minimum Fee'),
'sortable' => TRUE,
],
[
'type' => 'field',
'key' => 'duration_interval',
'dataType' => 'Integer',
'label' => ts('Duration'),
'label' => E::ts('Duration'),
'sortable' => TRUE,
'rewrite' => '[duration_interval] [duration_unit:label]',
],
[
'type' => 'field',
'key' => 'visibility:label',
'dataType' => 'String',
'label' => ts('Visibility'),
'label' => E::ts('Visibility'),
'sortable' => TRUE,
],
[
Expand All @@ -111,7 +112,7 @@
[
'path' => 'civicrm/member/search?reset=1&force=1&type=[id]',
'icon' => 'fa-external-link',
'text' => ts('Members'),
'text' => E::ts('Members'),
'style' => 'default',
'condition' => [],
'task' => '',
Expand All @@ -126,7 +127,7 @@
'join' => '',
'target' => 'crm-popup',
'icon' => 'fa-external-link',
'text' => ts('Edit'),
'text' => E::ts('Edit'),
'style' => 'default',
'path' => 'civicrm/admin/member/membershipType/add?action=update&id=[id]&reset=1',
'action' => '',
Expand Down
Loading

0 comments on commit 8387a9a

Please sign in to comment.