Log message #4225853

# At Username Text
# 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
# Feb 10th 2020, 10:02 pieceof looking for one, used switchery (it sucks)
# Feb 10th 2020, 10:02 challgren wasnt there a beforeLabel/afterLabel or beforeInput/afterInput
# Feb 10th 2020, 10:00 challgren Well for example I need to override the checkbox https://book.cakephp.org/4/en/views/helpers/form.html#moving-checkboxes-radios-outside-of-a-label if I do that it screws up the whole form
# Feb 10th 2020, 10:00 neon1024 Write your templates into files, and load them when you need them
# Feb 10th 2020, 10:00 pieceof yes, mostly (cake2)
# Feb 10th 2020, 10:00 challgren I override one way and then need to do another way and I just feel limited with cake
# Feb 10th 2020, 09:59 challgren Thats really where im struggling
# Feb 10th 2020, 09:59 challgren Do you use forms in cakephp?
# Feb 10th 2020, 09:59 pieceof used, metronic, inspinia and smartadmin
# Feb 10th 2020, 09:58 javier.villanueva https://adminlte.io/docs/2.4/installation
# Feb 10th 2020, 09:58 javier.villanueva I use maiconpinto admin lte
# Feb 10th 2020, 09:57 challgren Ok I think Im throwing the towel in on Inspinia, anyone have a good theme that works with cakephp generated stuff and foc/boostrap-ui
# Feb 10th 2020, 09:39 challgren Im really fighting the form helper on this template
# Feb 10th 2020, 09:39 javier.villanueva sometimes i use a parent div with my custom class, and attrs in the element
# Feb 10th 2020, 09:38 javier.villanueva but probably is not the best way
# Feb 10th 2020, 09:38 javier.villanueva yes... i remove attrs when i use custom classes
# Feb 10th 2020, 09:38 javier.villanueva :S
# Feb 10th 2020, 09:37 challgren If I do then theres duplicate class=“” in the HTML which doesnt render correctly
# Feb 10th 2020, 09:37 javier.villanueva and you cant add your default class there?
# Feb 10th 2020, 09:36 challgren currently its ‘label’ => ‘<label{{attrs}}>{{text}}{{tooltip}}</label>’,
# Feb 10th 2020, 09:36 challgren Yes
# Feb 10th 2020, 09:35 javier.villanueva @challgren do you use a custom "templates" (in your forms)?
# Feb 10th 2020, 09:34 slackebot "type": "domains", "id": "1" } } }, ``` We've looked into https://crud-json-api.readthedocs.io/en/latest/api-usage-advanced/inclusion.html#whitelist-blacklist and https://crud.readthedocs.io/en/latest/listeners/related-models.html, but without success.
# Feb 10th 2020, 09:34 tersmitten We recently started using friendsofcake/crud-json-api. We're trying the prevent "data" loading for "relationships". what we want is: ```json "relationships": { "domain": { "links": { "self": "\/api\/v1\/domains\/1" }, "data": {} } }, instead of ```json "relationships": { "domain": { "links": { "self": "\/api\/v1\/domains\/1" }, "data": {
# Feb 10th 2020, 09:32 challgren Ok next question is how do I add a default class to labels created via form helper
# Feb 10th 2020, 09:27 javier.villanueva ajam, ok, thanks
# Feb 10th 2020, 09:26 challgren I create the entity and then check the db
# Feb 10th 2020, 09:24 javier.villanueva to test a validation default?
# Feb 10th 2020, 09:24 javier.villanueva why is the best way to assert if entity is created without errors?
# Feb 10th 2020, 09:20 javier.villanueva yes :S