…add checkboxes, events.
All why not using Stimulus?
By the way, I've always wondered if it was possible to override EasyAdmin to use DataTables instead, and have it use Ajax requests.
In short, if one day you decide to create this course, it will…
…>onlyOnDetail();
And in that twig template, I can loop through the posts through: `{% for post in field.value %}`
However, I was hoping to make that table function like the tables EasyAdmin has on the Crud Index pages. Is there any way to neatly do this?
…But they work great and are very robust (once you get them working, it's not going to suddenly break).
* 2) Duplicate the hashing logic: do it in ApiPlatform like we do, then do it in EasyAdmin by, for example, overriding `persistEntity()` in your controller…
…Fix edit bug #}
{% set excludedKey = 'form' %}
{% set htmlAttributes = action.htmlAttributes|default({}) %}
{% set filteredHtmlAttributes = htmlAttributes|merge([])|filter((value, key) => key != excludedKey) %}
{% do action.setHtmlAttributes(filteredHtmlAttributes) %}
{{ include('@EasyAdmin/crud/action.html.twig') }}
```
Fix only works if I remove the form attribute of the button
…As far as I know, EasyAdmin doesn't supply anything for that second part - https://github.com/EasyCorp/EasyAdminBundle/issues/4716
Personally (though I have not done this yet), I would solve this by:
A) First setting up the form events as needed to change…
…no security is applied.
The maximum I got is unsecure the main page but then there is no chance to login and use user & session data in the main page.
How is it done here with symfony and easyadmin? it´s not such a weird case…
…This is probably the hardest part and has nothing to do with EasyAdmin - it is 100% about learning how to render a field in a custom way via a form theme https://symfony.com/doc/current/form/form_themes.html and https://symfonycasts.com/screencast…
… Unfortunately, we cannot add new chapters to the tutorials we've already released, but we can consider this as a good topic to cover for our next tutorial about EasyAdmin. We don't have specific plans to make it in a nearest feature, but I…
…there.
Here's the idea. Override the "form theme" for your collection field. This has 0% to do with EasyAdmin and 100% to do with Symfony's form theming system, which can definitely be quite tricky. Exactly how it should look will depend on what…
…how things are rendered on the form? For a hint, here is how EasyAdmin renders, for example, the "edit form" (this is from a core EasyAdmin template):
```
{{ form(edit_form) }}
```
Yup, they simply use the `form()` function internally. This means that the form is rendered…
…want to add some data attributes - I think you should override a template for this, in specific `vendor/easycorp/easyadmin-bundle/src/Resources/views/crud/form_theme.html.twig` one - you will find a `` tag there, add your data controller there.
I hope this helps…
…renderAsEmbeddedForm() that is supposed to do exactly what I need, and I have the latest easyadmin version installed but that method does not exist...
I can't find anything on the internet about it missing either, the only google search result is the documentation page…
…days is by using LiveComponents. However, I haven't used live components in EasyAdmin yet - it would require some research to figure out how to reuse the form built by EasyAdmin from inside of your component. A compelling thing to try, but I just haven…
…sharing!
> I really really recommend to avoid this easy-admin-bundle and use api-platform to implement crud-action and build the UI's with Vue or React.
I really like EasyAdmin - but it's a fair point - we have multiple excellent options :).
Cheers…
…Activity, you can access the Activity fields by doing something like this
```php
public function configureFields(string $pageName): iterable
{
yield Field::new('activity.id', 'Activity ID');
}
```
Here you can learn more the EasyAdmin association field https://symfony.com/doc/current/EasyAdminBundle/fields/AssociationField.html
Cheers!
…function __toString(): string
{
return $this->getSequence() . ' of ' .$this->getMessageGroup()->getMessages()->count();
}
```
But it would be better to do this in a custome easyAdmin twig template.. but how can I get this total message count in the template ?
number of replies om posts is commonly there ..…
…url.
2). Other big problem is that when you edit, easyadmin do not see uploaded file (what you mention about "model transformer"), so file input is empty and after sending form there is an error:
> Expected argument of type "string", "null" given at property…
…render. If so, I believe you have found a bug in this feature. My guess is that EasyAdmin is not rendering the JavaScript needed to properly "render" the rich TextEditorField. And so, you see nothing (or maybe you see something but it looks broken). If…
…but disable turbo for those sections :). For Turbo to work (as you know), your JavaScript needs to be written "correctly". For something like EasyAdmin, there is a lot of JavaScript that you don't have control over. And so, there's nothing you can do…
…
I have all installed
```
{
"name": "easyadmin",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"devDependencies": {
"@hotwired/stimulus": "^3.0.1",
"@symfony/stimulus-bridge": "^3.2.0",
"@symfony/ux-chartjs": "file:vendor/symfony/ux-chartjs/Resources/assets",
"@symfony/webpack-encore": "^2.1.0",
"chart.js…
x
597