MopaBootstrapBundle icon indicating copy to clipboard operation
MopaBootstrapBundle copied to clipboard

Does "widget_addon_prepend" work with Symfony 4?

Open vanniekerkalex opened this issue 6 years ago • 5 comments

I'm running Symfony 4 and installed MopaBootstrapBundle with composer: "composer require mopa/bootstrap-bundle", but the "widget_addon_prepend" on my forms do not work.

I get the following error: "The option "widget_addon_prepend" does not exist."

Besides installing the bundle with composer, I have not done anything else, is there anything I need to do to get it work? Is it Symfony 4 compatible?

Below are screenshots showing MopaBootstrapBundle has been added to my "bundles.php" as well as my form element showing the usage of "widget_addon_prepend".

Thank you for any help!!

This is what I'm trying to achieve:

Screenshot 2019-07-16 at 18 49 41 Screenshot 2019-07-16 at 18 45 23 Screenshot 2019-07-16 at 18 44 31

vanniekerkalex avatar Jul 16 '19 16:07 vanniekerkalex

DId you add configuration to enable the form support?

mopa_bootstrap:
    form: ~

isometriks avatar Jul 16 '19 17:07 isometriks

I wasn't sure where to add that? Please could you point me in the right direction...

Thank you!

vanniekerkalex avatar Jul 16 '19 17:07 vanniekerkalex

In any config file. If you're using flex create config/packages/mopa_bootstrap.yaml and add it there, if you have a app/config/config.yml add it there.

isometriks avatar Jul 16 '19 18:07 isometriks

Thanks! I added it and it's not giving any errors, but it's still not showing the prepended / appended text on my input field... any thoughts?

vanniekerkalex avatar Jul 16 '19 19:07 vanniekerkalex

Hi @isometriks

Do you have tips for me to get this working? I'd appreciate any advice.

Thanks!

vanniekerkalex avatar Jul 18 '19 17:07 vanniekerkalex