{
"type": "search",
"requires": [],
+ "entity_type": null,
+ "join_entity": null,
"title": "Fields",
"description": "Administer custom fields list",
+ "is_dashlet": false,
+ "is_public": false,
+ "is_token": false,
+ "contact_summary": null,
+ "summary_contact_type": null,
+ "icon": "fa-list-alt",
"server_route": "civicrm/admin/custom/group/fields",
- "permission": "administer CiviCRM data"
+ "permission": "administer CiviCRM data",
+ "redirect": null,
+ "create_submission": false,
+ "navigation": null
}
{{:: ts('Custom data is stored in custom fields. Custom fields are organized into logically related custom data sets (e.g. Volunteer Info). Use custom fields to collect and store custom data which are not included in the standard CiviCRM forms. You can create one or many sets of custom fields.') }}
<a href="https://docs.civicrm.org/user/en/latest/organising-your-data/creating-custom-fields" target="_blank" class="crm-doc-link no-popup">{{:: ts('Learn more...') }}</a>
</div>
- <div>
+ </div>
+ <div class="af-container af-layout-inline">
+ <af-field name="title" defn="{required: false, input_attrs: {}, label: 'Group'}" />
+ <af-field name="extends" defn="{input_attrs: {multiple: true}, label: 'Used For'}" />
+ <af-field name="CustomGroup_CustomField_custom_group_id_01.label" defn="{required: false, input_attrs: {}, label: 'Field'}" />
+ </div>
+ <div class="btn-group pull-right">
<a class="btn btn-primary" ng-href="{{:: crmUrl('civicrm/admin/custom/group/edit', {reset: 1}) }}">
- <i class="crm-i fa-plus-circle"></i>
+ <i class="crm-i fa-plus"/>
{{:: ts('Add Set of Custom Fields') }}
</a>
- </div>
</div>
<crm-search-display-table search-name="Administer_Custom_Groups" display-name="Table"></crm-search-display-table>
</div>
{
"type": "search",
"requires": [],
+ "entity_type": null,
+ "join_entity": null,
"title": "Custom Field Groups",
"description": "Administer custom field groups list",
+ "is_dashlet": false,
+ "is_public": false,
+ "is_token": false,
+ "contact_summary": null,
+ "summary_contact_type": null,
+ "icon": "fa-list-alt",
"server_route": "civicrm/admin/custom/group",
- "permission": "administer CiviCRM data"
+ "permission": "administer CiviCRM data",
+ "redirect": null,
+ "create_submission": false,
+ "navigation": null
}
'name' => 'Administer_Custom_Fields',
'label' => E::ts('Administer Custom Fields'),
'form_values' => NULL,
+ 'mapping_id' => NULL,
'search_custom_id' => NULL,
'api_entity' => 'CustomField',
'api_params' => [
],
'expires_date' => NULL,
'description' => NULL,
- 'mapping_id' => NULL,
+ ],
+ 'match' => [
+ 'name',
],
],
],
'alignment' => 'text-right',
],
[
- 'text' => E::ts('Actions'),
+ 'text' => '',
'style' => 'default',
'size' => 'btn-xs',
'icon' => 'fa-bars',
'text' => E::ts('Add Custom Field'),
'icon' => 'fa-plus',
],
+ 'placeholder' => 5,
],
'acl_bypass' => FALSE,
],
+ 'match' => [
+ 'name',
+ 'saved_search_id',
+ ],
],
],
];
'name' => 'Administer_Custom_Groups',
'label' => E::ts('Administer Custom Groups'),
'form_values' => NULL,
+ 'mapping_id' => NULL,
'search_custom_id' => NULL,
'api_entity' => 'CustomGroup',
'api_params' => [
'extends_entity_column_id:label',
'style:label',
'COUNT(CustomGroup_CustomField_custom_group_id_01.id) AS COUNT_CustomGroup_CustomField_custom_group_id_01_id',
+ 'GROUP_CONCAT(DISTINCT CustomGroup_CustomField_custom_group_id_01.label) AS GROUP_CONCAT_CustomGroup_CustomField_custom_group_id_01_label',
],
'orderBy' => [],
'where' => [],
],
'expires_date' => NULL,
'description' => NULL,
- 'mapping_id' => NULL,
+ ],
+ 'match' => [
+ 'name',
],
],
],
'label' => E::ts('Group Title'),
'sortable' => TRUE,
],
+ [
+ 'type' => 'field',
+ 'key' => 'extends_entity_column_id:label',
+ 'dataType' => 'Integer',
+ 'label' => E::ts('Used for'),
+ 'sortable' => TRUE,
+ 'empty_value' => '[extends:label]',
+ ],
[
'type' => 'field',
'key' => 'is_active',
],
[
'type' => 'field',
- 'key' => 'extends_entity_column_id:label',
- 'dataType' => 'Integer',
- 'label' => E::ts('Used for'),
+ 'key' => 'style:label',
+ 'dataType' => 'String',
+ 'label' => E::ts('Style'),
'sortable' => TRUE,
- 'empty_value' => '[extends:label]',
],
[
- 'type' => 'field',
- 'key' => 'style:label',
+ 'type' => 'html',
+ 'key' => 'GROUP_CONCAT_CustomGroup_CustomField_custom_group_id_01_label',
'dataType' => 'String',
- 'label' => E::ts('Style'),
+ 'label' => E::ts('Fields'),
'sortable' => TRUE,
+ 'rewrite' => "{capture assign=fields}[GROUP_CONCAT_CustomGroup_CustomField_custom_group_id_01_label]{/capture}{ \$fields|replace:',':'<br>'}",
],
[
'size' => 'btn-xs',
'text' => E::ts('Fields (%1)', [1 => '[COUNT_CustomGroup_CustomField_custom_group_id_01_id]']),
'style' => 'default',
'path' => 'civicrm/admin/custom/group/fields#/?gid=[id]',
+ 'condition' => [],
],
[
'entity' => 'CustomGroup',
'icon' => 'fa-pencil',
'text' => E::ts('Settings'),
'style' => 'default',
+ 'path' => '',
+ 'condition' => [],
],
],
'type' => 'buttons',
'icon' => 'fa-eye',
'text' => E::ts('Preview Group'),
'style' => 'default',
+ 'path' => '',
+ 'condition' => [],
],
[
'entity' => 'CustomGroup',
'icon' => 'fa-trash',
'text' => E::ts('Delete Group'),
'style' => 'danger',
+ 'path' => '',
+ 'condition' => [],
],
],
'type' => 'menu',
FALSE,
],
],
+ 'placeholder' => 5,
],
'acl_bypass' => FALSE,
],
+ 'match' => [
+ 'name',
+ 'saved_search_id',
+ ],
],
],
];