Log message #4225910

# At Username Text
# Feb 10th 2020, 11:19 ndm If you want to check whether it was a non-change? Sure, that should work.
# Feb 10th 2020, 11:17 birdy247 so we would need to getOriginal and compare?
# Feb 10th 2020, 11:17 birdy247 Right cool
# Feb 10th 2020, 11:16 ndm yes
# Feb 10th 2020, 11:16 birdy247 cake 3
# Feb 10th 2020, 11:16 birdy247 would property be marked as dirty even if the value was not changing
# Feb 10th 2020, 11:15 birdy247 $this->save($entity)
# Feb 10th 2020, 11:15 birdy247 and then $entity->property = 1;
# Feb 10th 2020, 11:15 birdy247 If $ get an entity
# Feb 10th 2020, 11:14 ndm Single checkbox with a custom template
# Feb 10th 2020, 11:08 challgren Ok so do the multiple doesnt work the form fails validation
# Feb 10th 2020, 10:59 ndm *global templates
# Feb 10th 2020, 10:59 ndm If you're not messing too much with the global labels, then using custom HTML and non-`control()` inputs should give you pretty much free hand for solving complicated/special cases... also sometimes there's no way around overriding templates on a per-control basis.
# Feb 10th 2020, 10:56 challgren I think my problem is I learned html way to early and didn't evolve to this HTML 5 stuff
# Feb 10th 2020, 10:55 ndm I'd probably start smoking again if I also had to write the docs for all the stuff :grimacing:
# Feb 10th 2020, 10:54 challgren That is until I want to wrap the checkbox in a div
# Feb 10th 2020, 10:54 challgren It works as a dirty hack around but as of right now it's not documented well
# Feb 10th 2020, 10:52 ndm Maybe there's also a cleaner way, ie not appropriating the multi checkbox stuff, but I'd have to look into that a little deeper... getting this horizontal stuff to work wasn't easy
# Feb 10th 2020, 10:52 challgren Damn thing is making me chain smoke
# Feb 10th 2020, 10:51 challgren Oh yeah duh!
# Feb 10th 2020, 10:51 ndm Use a single option?
# Feb 10th 2020, 10:50 challgren The label is fixed
# Feb 10th 2020, 10:50 challgren Bad, I just want a single checkbox there
# Feb 10th 2020, 10:49 ndm I don't know if that's good or nah :upside_down_face:
# Feb 10th 2020, 10:48 slackebot <challgren>
# Feb 10th 2020, 10:47 ndm Should generate something like that
# Feb 10th 2020, 10:46 ndm You'd need to pass some options, ie `<?= $this->Form->control('active', ['multiple' => 'checkbox', 'options' => [1 => 'Option one', 2 => 'Option two', /* ... */]]); ?>`
# 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