# |
Jul 15th 2019, 18:37 |
daniel.upshaw |
Is the problem that it changes everywhere? |
# |
Jul 15th 2019, 18:37 |
daniel.upshaw |
So when you change it |
# |
Jul 15th 2019, 18:36 |
ricksaccous |
you can't stick hidden inputs in there though |
# |
Jul 15th 2019, 18:36 |
daniel.upshaw |
``` // Input group wrapper for checkboxes created via control(). 'checkboxFormGroup' => '{{label}}',``` |
# |
Jul 15th 2019, 18:36 |
daniel.upshaw |
Do you have that in there? |
# |
Jul 15th 2019, 18:36 |
daniel.upshaw |
``` // Wrapper container for checkboxes. 'checkboxWrapper' => '<div class="checkbox">{{label}}</div>',``` |
# |
Jul 15th 2019, 18:35 |
ricksaccous |
give it a try yourself on your cake installation and see |
# |
Jul 15th 2019, 18:35 |
ricksaccous |
yeah, but it does use it for checkboxes |
# |
Jul 15th 2019, 18:34 |
daniel.upshaw |
Doesn't seem to mention checkbox there |
# |
Jul 15th 2019, 18:34 |
daniel.upshaw |
``` // Label element used for radio and multi-checkbox inputs. 'nestingLabel' => '<label{{attrs}}>{{hidden}}{{input}}{{text}}</label>',``` |
# |
Jul 15th 2019, 18:34 |
ricksaccous |
it's the easiest way for now |
# |
Jul 15th 2019, 18:34 |
daniel.upshaw |
Hmm |
# |
Jul 15th 2019, 18:33 |
ricksaccous |
lol |
# |
Jul 15th 2019, 18:33 |
ricksaccous |
screw it i'm just going to make it an element |
# |
Jul 15th 2019, 18:33 |
ricksaccous |
ugh |
# |
Jul 15th 2019, 18:32 |
ricksaccous |
template/widget |
# |
Jul 15th 2019, 18:32 |
ricksaccous |
and not the other one |
# |
Jul 15th 2019, 18:32 |
ricksaccous |
i just want the label to use the nestingLabel template |
# |
Jul 15th 2019, 18:32 |
daniel.upshaw |
Even globally? |
# |
Jul 15th 2019, 18:32 |
daniel.upshaw |
Oh |
# |
Jul 15th 2019, 18:32 |
ricksaccous |
i already have the container working mang |
# |
Jul 15th 2019, 18:31 |
daniel.upshaw |
`'checkboxContainer' => '<div class="checkbox{{required}}">{{content}}</div>{{helptext}}',` |
# |
Jul 15th 2019, 18:31 |
daniel.upshaw |
This |
# |
Jul 15th 2019, 18:31 |
daniel.upshaw |
Not that |
# |
Jul 15th 2019, 18:31 |
daniel.upshaw |
Oops |
# |
Jul 15th 2019, 18:31 |
ricksaccous |
but these sliders are used throughout so if i can make them a widget it would help |
# |
Jul 15th 2019, 18:31 |
daniel.upshaw |
`'inputContainer' => '<div class="form-group input {{type}}{{required}}">{{content}}{{helptext}}</div>',` |
# |
Jul 15th 2019, 18:31 |
daniel.upshaw |
Maybe try this |
# |
Jul 15th 2019, 18:31 |
ricksaccous |
i just use the templates, and they work fine for that |
# |
Jul 15th 2019, 18:30 |
ricksaccous |
the default checkboxes i already have working |
# |
Jul 15th 2019, 18:30 |
ricksaccous |
it's the sliders |
# |
Jul 15th 2019, 18:30 |
ricksaccous |
but it's not the default checkboxes |
# |
Jul 15th 2019, 18:30 |
ricksaccous |
some bootstrap related theme |
# |
Jul 15th 2019, 18:30 |
daniel.upshaw |
I might have an answer for you |
# |
Jul 15th 2019, 18:29 |
daniel.upshaw |
E.g., to fit in boostrap etc? |
# |
Jul 15th 2019, 18:29 |
daniel.upshaw |
You're trying to nest checkbox controls differently @ricksaccous? |
# |
Jul 15th 2019, 18:28 |
ricksaccous |
also the defaults for templateVars don't work, lmao |
# |
Jul 15th 2019, 18:28 |
ricksaccous |
because it's using 'label' |
# |
Jul 15th 2019, 18:28 |
ricksaccous |
just not using the nestingLabel template I want it to |
# |
Jul 15th 2019, 18:28 |
ricksaccous |
it's correctly over-riding the templates |
# |
Jul 15th 2019, 18:28 |
ricksaccous |
yeah that piece of the code is working |