Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Form] [Feature] Add a option to override options in embedded forms #6350

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

Closed
marcospassos opened this issue Dec 14, 2012 · 3 comments
Closed
Labels

Comments

@marcospassos
Copy link

Several times, I need to do tiny changes in the embedded forms in order to get a better look, but I don't would like to change it permanently. For instance, I have a form that have a embedded address form. In this case, I would like to remove the address label just in this context, because I need this in some others forms.

I think that an option to set options in the embedded forms would be very nice, allowing perform some changes according with the context that it is embedded.

An example how this might look:

$builder->add('address', 'address', array(
    'children' => array(
        'street' => array(
            'label' => false
        ),
        'country' => array(
            'attr' =>  array('class' => 'nice');
        )
    )
);

If you find it useful, I can work on that.

Thanks!

@webmozart
Copy link
Contributor

ref #3825

@marcospassos
Copy link
Author

#3825 is specific for date forms, my proposal is for more generic usage, that can address #3825.

@webmozart
Copy link
Contributor

Closed in favor of #9177

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants