# |
Feb 10th 2020, 10:44 |
slackebot |
<challgren> |
# |
Feb 10th 2020, 10:44 |
challgren |
`<?= $this->Form->control('active', ['multiple' => 'checkbox']); ?>` generates |
# |
Feb 10th 2020, 10:42 |
ndm |
That should work when using `'multiple' => 'checkbox'`, it will put the control label on the left, and the individual checkboxes with their labels on the right |
# |
Feb 10th 2020, 10:39 |
challgren |
It does following this example https://github.com/FriendsOfCake/bootstrap-ui/tree/cake-4-bs-4#horizontal-form but i need the label on the left and the box in the right column |
# |
Feb 10th 2020, 10:34 |
ndm |
Ok, if you remove your global templates, use a horizontal form, and `'multiple' => 'checkbox'`, does it come close to what you're looking for? |
# |
Feb 10th 2020, 10:32 |
challgren |
Just 1 |
# |
Feb 10th 2020, 10:32 |
challgren |
I just need 1 checkbox on this page |
# |
Feb 10th 2020, 10:32 |
challgren |
Well Im just going for the checkboxes only |
# |
Feb 10th 2020, 10:32 |
ndm |
That's some rather specific output, it would probably be relatively simple if you wouldn't have to mix checkboxes and radios. |
# |
Feb 10th 2020, 10:28 |
challgren |
Ok so the hidden field created seems to be sticking to input template, but the true checkbox beats to its own rhythm |
# |
Feb 10th 2020, 10:23 |
challgren |
well removing the input override puts the checkbox on the same line but screws up my other inputs now |
# |
Feb 10th 2020, 10:20 |
challgren |
my templates |
# |
Feb 10th 2020, 10:20 |
challgren |
My code |
# |
Feb 10th 2020, 10:19 |
challgren |
This my current html outputed |
# |
Feb 10th 2020, 10:19 |
challgren |
This is my end goal |
# |
Feb 10th 2020, 10:18 |
ndm |
Certainly you'd use `control()` though |
# |
Feb 10th 2020, 10:18 |
challgren |
Well Im trying to override stuff to work with inspinia theme |
# |
Feb 10th 2020, 10:18 |
ndm |
I'll have to check.... things were working relatively fine ever since I've last committed to it |
# |
Feb 10th 2020, 10:17 |
challgren |
Yep |
# |
Feb 10th 2020, 10:17 |
neon1024 |
Is 3.0.0-beta for Cake 4? |
# |
Feb 10th 2020, 10:17 |
neon1024 |
Ah noice, I am still on `2.0.0-beta4` |
# |
Feb 10th 2020, 10:17 |
challgren |
friendsofcake/bootstrap-ui 3.0.0-beta |
# |
Feb 10th 2020, 10:16 |
ndm |
The latest dev? |
# |
Feb 10th 2020, 10:16 |
challgren |
I am using it |
# |
Feb 10th 2020, 10:16 |
ndm |
Have you considered using use the bootstrap-ui plugin? |
# |
Feb 10th 2020, 10:15 |
slackebot |
Action: neon1024 rearranges the stuff on pieceof desk |
# |
Feb 10th 2020, 10:14 |
pieceof |
afk ~20m |
# |
Feb 10th 2020, 10:13 |
slackebot |
<pieceof> |
# |
Feb 10th 2020, 10:13 |
pieceof |
no span .P |
# |
Feb 10th 2020, 10:12 |
challgren |
Why render the damm checkbox outside the div! |
# |
Feb 10th 2020, 10:12 |
challgren |
Above code generates above code |
# |
Feb 10th 2020, 10:11 |
slackebot |
<challgren> |
# |
Feb 10th 2020, 10:11 |
slackebot |
<challgren> |
# |
Feb 10th 2020, 10:10 |
pieceof |
i cant spin this project here |
# |
Feb 10th 2020, 10:10 |
pieceof |
bootstrap looks for an span at the end |
# |
Feb 10th 2020, 10:10 |
pieceof |
try putting emprty '<span></span>' at the 'after' |
# |
Feb 10th 2020, 10:09 |
pieceof |
every new template/project is a new headache |
# |
Feb 10th 2020, 10:08 |
slackebot |
<pieceof> |
# |
Feb 10th 2020, 10:08 |
challgren |
And now I switched from control to checkbox and its rendering the checkbox outside the div |
# |
Feb 10th 2020, 10:07 |
pieceof |
cant find one full render via ->input |
# |
Feb 10th 2020, 10:03 |
challgren |
I hate HTML so much |