Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tabbed interface for organizing afforms by type #19395

Merged
merged 6 commits into from
Jan 20, 2021

Conversation

colemanw
Copy link
Member

@colemanw colemanw commented Jan 16, 2021

Overview

This creates afform types and a tabbed interface in the Admin section, and adds support for embedding search displays into afform fieldsets.

Before

Single form type

After

Multiple types of forms.
Afforms now support embedded search displays and are able to add filter fields for all entities in that display.

image

Comments

This gets us a long way toward solid integration between Afform and Search Kit. The remaining step is GUI support for composing filter fields for search-based afforms.

@civibot
Copy link

civibot bot commented Jan 16, 2021

(Standard links)

@civibot civibot bot added the master label Jan 16, 2021
@colemanw
Copy link
Member Author

retest this please

@eileenmcnaughton
Copy link
Contributor

Looks good - when looking at this I think putting the title left of the name would make the view more readable

This allows an afform af-fieldset to function without a containing af-form or reference to af-entity
Instead it can directly contain an api-entities tag to assist filling field metadata.
The search extension then adds that tag based on the search parameters.
This also eliminates the need to pass in filters to the search display directly (though it still supports that),
as it will infer them from the presence of an af-fieldset.
@colemanw colemanw changed the title WIP - Tabbed interface for organizing afforms by type Tabbed interface for organizing afforms by type Jan 20, 2021
@colemanw
Copy link
Member Author

This is extension-only code. Merging to move things along.

@colemanw colemanw merged commit e8eab34 into civicrm:master Jan 20, 2021
@colemanw colemanw deleted the afformTypes branch January 20, 2021 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants