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

Enable & do single field metadata conversion for defaultContactCountry #19697

Merged
merged 1 commit into from
Mar 12, 2021

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented Mar 1, 2021

Overview

Enable & do single field metadata conversion for defaultContactCountry

Before

tpl for defaultContactCountry does not use metadata for the field

After

Metadata used, ability to convert field-by-field to break it up

Technical Details

This builds on #19629

Our intention is that we should be building functionality into this
form that is actually used in core. It's a bit tricky to swap out
all fields at once but this makes them individually swap-outable.

Only defaultContactCountry is swapped out. I looked a little at the
help_text issue - the text actually does work if you
add it since it's already in the hlp file but I decided this
broke consistency less (using description) as other fields
on the form do that and look similar. Also, when the text is
really just a bit of text (not a long help text) it makes sense.

(Otherwise I'd need to trawl through resolving the bigger issue
and I didn't want to bring that into scope)

This shows it with the description AND the help icon - note the help icon is not aligned as the overall
form is not yet standardised

image

With just the description
image

And other fields on the same form

image

Comments

This builds on civicrm#19629

Our intention is that we should be building functionality into this
form that is actually used in core. It's a bit tricky to swap out
all fields at once but this makes them individually swap-outable.

Only defaultContactCountry is swapped out. I looked a little at the
help_text issue - the text actually does work if you
add it since it's already in the hlp file but I decided this
broke consistency less (using description) as other fields
on the form do that and look similar. Also, when the text is
really just a bit of text (not a long help text) it makes sense.

(Otherwise I'd need to trawl through resolving the bigger issue
and I didn't want to bring that into scope)
@civibot
Copy link

civibot bot commented Mar 1, 2021

(Standard links)

@eileenmcnaughton
Copy link
Contributor Author

test this please

@colemanw
Copy link
Member

colemanw commented Mar 12, 2021

Just noting that when further cleanup is done, we should get rid of that godawful "advmultiselect" widget for "Pinned Countries".
Preferable alternatives are Select2 (for compactness) or if taking up lots of space is actually desired, the relatively new checkbox group is a nice replacement that takes up a similar amount of space:

image

@colemanw colemanw merged commit 3a8f45d into civicrm:master Mar 12, 2021
@colemanw colemanw deleted the setting branch March 12, 2021 14:55
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