# |
Feb 10th 2020, 12:06 |
slackebot |
ask to have an easy way to implement an API and there are many good plugins for it. |
# |
Feb 10th 2020, 12:06 |
rochasmarcelo |
Hi @lpj145 it is sad to hear this, I'm also from Brazil. It's okay to have different option about framework and this is a good place to discuss about CakePHP. I see that CakePHP has always focused to help start applications faster and grow consistent, but this may not be good for everyone and it's okay. I would say that many changes people would see in CakePHP or any other framework could be archived using existing or new plugins, some |
# |
Feb 10th 2020, 11:45 |
challgren |
I personally dont see the issue with a checkbox being away from the label, I could see that where there is multiple but not on an active/inactive |
# |
Feb 10th 2020, 11:41 |
neon1024 |
They must respect your knowledge as they picked you for the project |
# |
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> |