Log message #4225919

# At Username Text
# Feb 10th 2020, 11:40 neon1024 :)
# Feb 10th 2020, 11:40 neon1024 Knowingly creating bad software because someone wants it to be bad and not collaborating with them to make it better just confuses me
# Feb 10th 2020, 11:40 neon1024 ..but you’re a developer, your expertise in UI should be greater than your client in most instances, so guiding them on good working practises and UI is part of the role I think
# Feb 10th 2020, 11:34 challgren I’m just following what the client wants http://webapplayers.com/inspinia_admin-v2.9.3/form_basic.html
# Feb 10th 2020, 11:33 neon1024 As they’re related items as part of a set
# Feb 10th 2020, 11:33 neon1024 The label should be close to the input imho
# Feb 10th 2020, 11:32 neon1024 At least right align the label so I don’t have to look right across and try to remember what the label is when I’m looking at the input
# Feb 10th 2020, 11:32 neon1024 Man that’s ugly
# Feb 10th 2020, 11:24 challgren Yay!!!!!
# 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?