# |
Sep 3rd 2019, 15:32 |
ricksaccous |
but if that works why not |
# |
Sep 3rd 2019, 15:32 |
neon1024 |
It’s done now |
# |
Sep 3rd 2019, 15:32 |
ricksaccous |
lol |
# |
Sep 3rd 2019, 15:32 |
ricksaccous |
you don't necessarily need to customize template |
# |
Sep 3rd 2019, 15:31 |
ricksaccous |
under the form key |
# |
Sep 3rd 2019, 15:31 |
slackebot |
<neon1024> |
# |
Sep 3rd 2019, 15:31 |
ricksaccous |
oh it can take form options |
# |
Sep 3rd 2019, 15:31 |
neon1024 |
https://book.cakephp.org/3.0/en/views/helpers/form.html#creating-post-buttons |
# |
Sep 3rd 2019, 15:31 |
ricksaccous |
i totally forgot that existed |
# |
Sep 3rd 2019, 15:31 |
ricksaccous |
ohhhh |
# |
Sep 3rd 2019, 15:30 |
neon1024 |
There is no Form->create |
# |
Sep 3rd 2019, 15:30 |
neon1024 |
Because @ricksaccous `postButton` is a single call |
# |
Sep 3rd 2019, 15:30 |
neon1024 |
Classes will be applied to the `<button>` tag not the `<form>` tag, which is `display:block` in my application |
# |
Sep 3rd 2019, 15:30 |
ricksaccous |
why wouldn't you just add a class in form->create |
# |
Sep 3rd 2019, 15:29 |
ricksaccous |
that works too |
# |
Sep 3rd 2019, 15:29 |
neon1024 |
Either way `postButton` doesn’t have an option to change the wrapping `<form>` tag |
# |
Sep 3rd 2019, 15:29 |
ricksaccous |
oh |
# |
Sep 3rd 2019, 15:29 |
ricksaccous |
but yep |
# |
Sep 3rd 2019, 15:29 |
ricksaccous |
float-right, whatever you guys are saying, etc, with floats you just have to be careful about clearfixing |
# |
Sep 3rd 2019, 15:29 |
neon1024 |
https://getbootstrap.com/docs/4.3/components/forms/#inline-forms |
# |
Sep 3rd 2019, 15:29 |
ricksaccous |
you have multiple options |
# |
Sep 3rd 2019, 15:28 |
alexdd55976 |
oh |
# |
Sep 3rd 2019, 15:28 |
alexdd55976 |
`class => "right"` |
# |
Sep 3rd 2019, 15:28 |
neon1024 |
Yes `inline` |
# |
Sep 3rd 2019, 15:28 |
alexdd55976 |
i meant css class |
# |
Sep 3rd 2019, 15:27 |
neon1024 |
There is for Form::create |
# |
Sep 3rd 2019, 15:27 |
alexdd55976 |
wasn't there a class for that? |
# |
Sep 3rd 2019, 15:27 |
neon1024 |
I’ll just change the template before I call it :man-shrugging: |
# |
Sep 3rd 2019, 15:26 |
ricksaccous |
meh |
# |
Sep 3rd 2019, 15:26 |
ricksaccous |
or horizontally from something |
# |
Sep 3rd 2019, 15:26 |
ricksaccous |
if the goal is to show the button to the right of something you could also just col-x stuff |
# |
Sep 3rd 2019, 15:26 |
alexdd55976 |
i think you have to do it by yourself |
# |
Sep 3rd 2019, 15:25 |
neon1024 |
Or do I have to style that myself? |
# |
Sep 3rd 2019, 15:25 |
neon1024 |
Anyone know how to use the BootstrapUI FormHelper::postButton to create an inline form? |
# |
Sep 3rd 2019, 15:17 |
alexdd55976 |
i assume he did java programming before |
# |
Sep 3rd 2019, 15:16 |
alexdd55976 |
not intuitive at all |
# |
Sep 3rd 2019, 15:15 |
alexdd55976 |
there are like 7 or 8 folders "controllers" + the ones in the plugins |
# |
Sep 3rd 2019, 15:15 |
alexdd55976 |
the framework helped him doing that |
# |
Sep 3rd 2019, 15:14 |
alexdd55976 |
its the developers fault |
# |
Sep 3rd 2019, 15:13 |
admad |
@alexdd55976 I wouldn't be too hasty in blaming the framework. Often it's the develop's fault |
# |
Sep 3rd 2019, 15:07 |
jeremy.halin |
@admad I get my entity with `find('translations')`. My default locale is `en_US`, so in database it's saved directly in table's row. But when I get entity, I only have for example `es_ES` in `translations` and no `en_US` even if column is not empty. For example say I have a `name` column, in `en_US` it's `apple` saved directly to table's row. `I18n::getLocale() === 'fr_FR'`, I have no translation for that |