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

Replace autocomplete fields by drop-down Fields #44

Closed
p-a-s-c-a-l opened this issue Dec 5, 2018 · 4 comments
Closed

Replace autocomplete fields by drop-down Fields #44

p-a-s-c-a-l opened this issue Dec 5, 2018 · 4 comments
Assignees
Labels
BB: Data Dashboard Data Dashboard Building Block BB: Data Package Tool Data Package Export and Import Tool Building Block enhancement New feature or request question Further information is requested

Comments

@p-a-s-c-a-l
Copy link
Member

Please replace all autocomplete fields by drop-down fields / lists when selecting existing terms from a taxonomy to give the user a chance to view the selectable options. E.g. consider the following example: It is not possible to choose an existing license for a Data Package if you don't know the name of the license.

grafik

@p-a-s-c-a-l p-a-s-c-a-l added the enhancement New feature or request label Dec 5, 2018
@p-a-s-c-a-l p-a-s-c-a-l added this to To do in T4.3 Scenario Management via automation Dec 5, 2018
@p-a-s-c-a-l p-a-s-c-a-l added this to the D1.3 CLARITY CSIS v1 milestone Dec 5, 2018
@p-a-s-c-a-l
Copy link
Member Author

I replaced the inline entity form of the *spatial context/grid property by a select list, since we should reuse as much entities as possible. E.g. the spatial context (including its grid) is the same for the different HC Datasets I'm going to add. So there's no need to to duplicate all this information.

However, in the select list, it's not possible to add a new entity:

grafik

@patrickkaleta @fgeyer16
Is there something like a "select or create new" editor form?

@p-a-s-c-a-l p-a-s-c-a-l added the question Further information is requested label Dec 10, 2018
@fgeyer16
Copy link

For adding or creating and add a new entity to a reference field there are two possibilities:

  • Inline entity Form of type complex. Here you can select if the user can create and/or select existing entity. But the selection widget is an autocomplete widget.
  • Entity Browser. Same idea as Inline forms but a more flexible implementation. Entity browsers are managed at admin/config/content/entity_browser. If you want to offer a selection you have to create a view of display type entity browser first.

I replaced your select list by an entity browser for grids. For now it is an iframe, but we can make a modal popup as well

@patrickkaleta
Copy link
Contributor

@p-a-s-c-a-l
I created the remaining Entity Browsers for Contributors, Sources and Licences (which are used both in the forms for data package and dataset) in the same way @fgeyer16 did for the grids. Other than that I didn't find any other autocomplete fields which should get replaced.

Some CSS changes need to be further applied (should hopefully be done by the end of the day).

@patrickkaleta
Copy link
Contributor

CSS changes were not necessary in the end, we just had to set the appropriate formatter for the Entity Browser display inside the forms.

T4.3 Scenario Management automation moved this from To do to Done Dec 17, 2018
@p-a-s-c-a-l p-a-s-c-a-l added BB: Data Package Tool Data Package Export and Import Tool Building Block BB: Data Dashboard Data Dashboard Building Block labels Jan 11, 2019
@p-a-s-c-a-l p-a-s-c-a-l added this to Backlog: High Priority in T1.3 Climate Services Co-creation via automation Oct 28, 2019
@p-a-s-c-a-l p-a-s-c-a-l moved this from Backlog: High Priority to Done in T1.3 Climate Services Co-creation Oct 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BB: Data Dashboard Data Dashboard Building Block BB: Data Package Tool Data Package Export and Import Tool Building Block enhancement New feature or request question Further information is requested
Projects
No open projects
Development

No branches or pull requests

3 participants