Log message #4225830

# At Username Text
# 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
# Feb 10th 2020, 09:20 challgren weird
# Feb 10th 2020, 09:19 javier.villanueva I use $this->assertResponseEmpty()
# Feb 10th 2020, 09:18 challgren $this->assertResponseEmpty()
# Feb 10th 2020, 09:18 challgren static access on non static object
# Feb 10th 2020, 09:17 javier.villanueva why can this happen?
# Feb 10th 2020, 09:17 javier.villanueva Call to undefined method App\Test\TestCase\Model\Table\UsersTableTest::assertResponseEmpty()
# Feb 10th 2020, 09:16 javier.villanueva morning all
# Feb 10th 2020, 09:14 challgren Ahh ok so it cant be set in a template that is extended or a layout
# Feb 10th 2020, 09:11 challgren Does $this->Form->setTemplates() need to be called before the $this->Form->create() or after?
# Feb 10th 2020, 08:50 neon1024 :thumbsup:
# Feb 10th 2020, 08:45 challgren That's how I have it cut up, sidebar is an element and topbar is an element too, using knumenu to build the sidebar
# Feb 10th 2020, 08:40 neon1024 Let me check my code
# Feb 10th 2020, 08:38 neon1024 I just make it an element and started a view block
# Feb 10th 2020, 08:38 challgren Can you share?
# Feb 10th 2020, 08:38 neon1024 It’s a block too, so I can append extra nav items to it
# Feb 10th 2020, 08:37 challgren O_o I like your topbar
# Feb 10th 2020, 08:37 challgren Ohh you didnt go to indepth with it then
# Feb 10th 2020, 08:36 slackebot <neon1024>
# Feb 10th 2020, 08:36 challgren Ahh so basic form
# Feb 10th 2020, 08:36 neon1024 Oh, I have my labels above
# Feb 10th 2020, 08:35 challgren What I got so far.
# Feb 10th 2020, 08:35 challgren Checkboxes I cant even get to line up
# Feb 10th 2020, 08:34 neon1024 Well, radio and checkbox, I don’t implement the JS parts