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

Possible Way to implement Flags into Form or Twig #105

Closed
Hanmac opened this issue Apr 6, 2022 · 6 comments
Closed

Possible Way to implement Flags into Form or Twig #105

Hanmac opened this issue Apr 6, 2022 · 6 comments
Labels
help wanted Extra attention is needed

Comments

@Hanmac
Copy link

Hanmac commented Apr 6, 2022

I don't know if it would work that easy, but would it be possible to add country flags into the Form?

while searching for phone number features i found this: https://intl-tel-input.com/

might that be able to work with this Symfony Bundle?

@Nek-
Copy link
Collaborator

Nek- commented Apr 9, 2022

Hello, yes it could work. Many implementations can be done here. I'm not aware of the best practice in including frontend dependencies with Symfony Bundle, but it's definitely possible to do something and that would be super great.

However, there's some work to do here to end up with something cool. Feel free to suggest ways to implement it or purpose a pull request!

@Hanmac
Copy link
Author

Hanmac commented Apr 26, 2022

For Form Fields i found this:
https://symfony.com/doc/current/EasyAdminBundle/fields/CountryField.html

i did experiment with Standard Symfony Forms, and pure html forms doesn't support it, so the form theme needs something like jquery ui to replace the Select

@Nek-
Copy link
Collaborator

Nek- commented Apr 26, 2022

It would be really nice to have something working without jQuery.

@Hanmac
Copy link
Author

Hanmac commented Apr 26, 2022

jquery was just an example, the first link probably works without it

i just mean that it wouldn't be able to work with HTML alone but needs some kind of Javascript

because the <option> doesn't allow any kind of html inside the label

@Nek-
Copy link
Collaborator

Nek- commented Apr 26, 2022

Yes, you're absolutely right. Feel free to help us with it :) .

@maxhelias
Copy link
Collaborator

maxhelias commented Oct 14, 2023

A PR is open #152 , so I close the issue to centralize exchanges

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants