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

Input Group Button Id #444

Open
fabionvs opened this issue Jun 20, 2016 · 0 comments
Open

Input Group Button Id #444

fabionvs opened this issue Jun 20, 2016 · 0 comments

Comments

@fabionvs
Copy link

fabionvs commented Jun 20, 2016

Hello guys,
I am developing using Symfony 2.8 and rendering forms using braincrafted. I am searching the best alternative to change input group button id on form type, but I couldn't find any solution.

->add('imagem', 'text', array(
'attr' => array(
'help_text' => 'Select Image.',
'input_group' => array(
'id' => 'test',
'prepend' => '.fa-image',
'button_append' => array(
'name' => 'Select Image',
'type' => 'button',
'options' => ['button_class' => 'primary', 'attr' => ['id' => 'test']]
),
)
)
))

Option 'Button Append' uses id as the same as name by default. And that is terrible!
Button HTML Output:
<button type="button" id="Select Image" name="Select Image" class="btn btn-primary">Select Image</button>

screenshot 2016-06-20 08 52 19

Could anyone help me to solve this problem?

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

No branches or pull requests

1 participant