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
FormHelper Customized Templates - checkboxFormGroup #6318
Comments
For checkbox the input gets nested inside the label so you shouldn't have Seems you are trying to customize the templates for bootstrap. I would suggest using the Bootstrap UI plugin. |
Thank you @ADmad, The doc needs an update then I guees - http://book.cakephp.org/3.0/en/views/helpers/form.html#list-of-templates Yes am using bootsrap, but I already have a template which I need to integrate with the app. |
For checkboxes by default the If you don't want the the checkbox input to be nested inside the label set the option |
Thanks man. perfect. checkboxWrapper doesn't seem to be anything. Is that so? When we use Form->input, the div with the class input and input type (file, text, checkbox, etc.) is inevitable, correct? Need to go for specific type of option to avoid that top div? - http://book.cakephp.org/3.0/en/views/helpers/form.html#generating-specific-types-of-inputs |
I have fixed
By default it does a wrapper div.
No, you can customize the |
It looks like FormHelper->input() or FormHelper->checkbox() are not using checkboxWrapper. |
@zkalinic It is in use see right here |
Thanks markstory for pointing out where it is in use, but can you give me an example how to use it? Just FormHelper->checkbox() or FormHelper->input(['type' => 'checkbox']) doesn't render checkboxWrapper... |
You need to be making a multipleCheckbox so |
checkboxFormGroup is generating a Notice for {{input}} -> Notice (8): Array to string conversion [CORE\src\View\StringTemplate.php, line 216]
My code attached...
Secondly, there is no way to customize the label of the checkbox. Any possibility for that?
The text was updated successfully, but these errors were encountered: