Skip to content

Commit

Permalink
Afform Tags - add to search kit reports listing
Browse files Browse the repository at this point in the history
  • Loading branch information
ufundo committed Jan 27, 2025
1 parent d99b988 commit 92c2188
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<af-field name="title" />
<af-field name="description" />
<af-field name="base_module" defn="{input_attrs: {multiple: true}}" />
<af-field name="tags" defn="{search_operator: 'CONTAINS', input_attrs: {}, label: 'Tag'}" />
</div>
<crm-search-display-table search-name="SearchKit_Reports" display-name="SearchKit_Reports_Table"></crm-search-display-table>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
'description',
'placement:label',
'server_route',
'tags:label',
],
'orderBy' => [],
'where' => [
Expand Down Expand Up @@ -68,14 +69,21 @@
'label' => E::ts('Description'),
'sortable' => TRUE,
],
[
'type' => 'field',
'key' => 'tags:label',
'dataType' => 'Array',
'label' => E::ts('Tags'),
'sortable' => TRUE,
],
[
'size' => 'btn-xs',
'links' => [
[
'path' => '[server_route]',
'icon' => 'fa-external-link',
'text' => E::ts('Open'),
'style' => 'info',
'path' => 'civicrm/admin/afform#/edit/[name]',
'icon' => 'fa-pen-to-square',
'text' => E::ts('Edit'),
'style' => 'warning',
'condition' => [],
'task' => '',
'entity' => '',
Expand All @@ -84,10 +92,10 @@
'target' => '',
],
[
'path' => 'civicrm/admin/afform#/edit/[name]',
'icon' => 'fa-pen-to-square',
'text' => E::ts('Edit'),
'style' => 'warning',
'path' => '[server_route]',
'icon' => 'fa-external-link',
'text' => E::ts('Open'),
'style' => 'info',
'condition' => [],
'task' => '',
'entity' => '',
Expand Down

0 comments on commit 92c2188

Please sign in to comment.