367 search results for EasyAdmin

... repeatable pattern for modals. Anyway, thanks for posting this - pretty inspiring to to hear about this setup in EasyAdmin already today. If the existing JS could be converted into Stimulus controllers, then Turbo made to be an "opt in", in theory, this could be done without a major release. Cheers!
weaverryan
weaverryan
Read Full Comment
... renders B) Create a template and render the field (and blocks) inside. 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 ...
weaverryan
weaverryan
Read Full Comment
... 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 you need to do exactly. But, it would look something like this at the top of ...
weaverryan
weaverryan
Read Full Comment
... Symfony documentation page say it should. And then create the template to override: ```twig {# templates/admin/crud/new.html.twig #} {% extends '@EasyAdmin/crud/new.html.twig' %} {% block body_attr ...
Coding010
Coding010
Read Full Comment
Hey Szabolcs! Ah, that's an interesting question! So here's the flow: A) You use the `EntityFilter` directly from EasyAdmin - https://github.com/EasyCorp/EasyAdminBundle/blob/4.x/src/Filter/EntityFilter.php B ...
weaverryan
weaverryan
Read Full Comment
Hello Symfonycast Team! I have a problem with one issue. I have created company and user entities. I made an onetoone relationship between them. When adding a company to the database by a logged in user in easyadmin ...
... filtering and sorting data or DataView control as they exist in Yii2 framework. The KnpPaginatorBundle package almost always has some bugs and does not work in new versions of Symfony. The EasyAdmin bundle is too ...
Влада Петковић
Влада Петковић
Read Full Comment
... will be awhile. Without knowing enough about ApiPlatform's react admin interface, my uneducated guess would be that: A) If you're building a "traditional" app that returns HTML pages, use EasyAdmin B) If you're building an ...
weaverryan
weaverryan
Read Full Comment
... When you render a form page in EasyAdmin, the form class is actually this one - https://github.com/EasyCorp/EasyAdminBundle/blob/1.x/src/Form/Type/EasyAdminFormType.php - it's a super-dynamic form type that builds ...
weaverryan
weaverryan
Read Full Comment
... update the user 1 with the email from another user. I also saw in this link from symfony how to integrate FOSUserBundle with EasyAdmin (https://symfony.com/doc/master/bundles/EasyAdminBundle/integration/fosuserbundle.html ...
... () === '/') { $event->setResponse(new RedirectResponse($this->router->generate('easyadmin')); } } ``` Does that makes sense? Or am I still "off" on what you want to accomplish. Let me know! Cheers!
weaverryan
weaverryan
Read Full Comment
... (admin, front , member space)... How to well organize my project, how for example an admin can manage all the adverts via admin space (not easyAdmin), how a member can manage only his own adverts via his private space ...
128 lines | app/config/admin.yml
easy_admin:
site_name: 'Aqua<i>Note</i>'
design:
brand_color: '#81b9ba'
assets:
css: ['css/custom_backend.css']
js:
- 'https://unpkg.com/snarkdown@1.2.2/dist/snarkdown.umd.js'
- 'js/custom_backend.js'
templates:
field_id: 'admin/fields/_id.html.twig'
form_theme:
- horizontal
- easy_admin/_form_theme.html.twig
menu:
- { label: 'Dashboard', route: 'admin_dashboard', default: true }
- { label: 'Open front-end', route: 'app_genus_list' }
- { entity: 'User', label: 'Users', icon: 'user' }
-
label: 'Genus'
children:
-
entity: 'Genus'
label: 'Pet genus'
icon: 'paw'
params:
action: 'show'
id: 2
- Genus
-
entity: 'Genus'
label: 'Genuses (sorted by ID)'
params:
sortField: 'id'
sortDirection: 'ASC'
pizza: 'delicious'
- GenusHorde
- { label: 'Related' }
- { entity: 'GenusNote', label: 'Notes', icon: 'sticky-note' }
- { entity: 'SubFamily', label: 'Sub-Families', icon: '' }
-
label: 'Important stuff'
icon: 'exclamation'
children:
-
label: 'Silly kittens'
url: 'https://www.youtube.com/results?search_query=silly+kittens'
target: '_blank'
-
label: 'Wet cats'
url: 'http://www.boredpanda.com/funny-wet-cats/'
target: '_blank'
list:
title: 'List of %%entity_label%%'
actions: ['show', 'export']
entities:
Genus:
class: AppBundle\Entity\Genus
controller: AppBundle\Controller\EasyAdmin\GenusController
label: Genuses
help: Genuses are not covered under warranty!
list:
help: Do not feed!
actions:
- { name: 'edit', icon: 'pencil', label: 'Edit' }
- { name: 'show', icon: 'info-circle', label: '' }
fields:
- 'id'
- 'name'
- 'isPublished'
- { property: 'firstDiscoveredAt', format: 'M Y', label: 'Discovered' }
- 'funFact'
- { property: 'speciesCount', format: '%b' }
sort: 'name'
search:
help: null
fields: ['id', 'name']
show:
actions:
-
name: 'genus_feed'
type: 'route'
label: 'Feed genus'
css_class: 'btn btn-info'
icon: 'cutlery'
- { name: 'changePublishedStatus', css_class: 'btn' }
# templates:
# field_id: 'admin/fields/_id.html.twig'
form:
fields:
- { type: 'group', css_class: 'col-sm-6', label: 'Basic information' }
- name
- speciesCount
- { property: 'firstDiscoveredAt', type_options: { widget: 'single_text' }}
- { property: 'subFamily', type: 'easyadmin_autocomplete' }
- { type: 'section', label: 'Optional' }
- { property: 'funFact', type: 'textarea', css_class: 'js-markdown-input' }
- isPublished
- { type: 'group', css_class: 'col-sm-6', label: 'Studied by ...' }
-
property: 'genusScientists'
type: 'text'
type_options:
mapped: false
attr: { class: 'js-genus-scientists-field' }
-
type: 'group'
css_class: 'col-sm-6 new-row'
label: 'Identification'
icon: 'id-card-o'
help: 'For administrators'
-
property: id
type_options: {disabled: true}
-
property: 'slug'
help: 'unique auto-generated value'
type_options: { disabled: true }
new:
fields:
- '-id'
- '-slug'
GenusHorde:
class: AppBundle\Entity\Genus
label: HORDE of Genuses
See Code Block in Script
Adding More Customized Blocks

... layout to get back to the main page. If you go to /admin, you'll find that our app already has EasyAdmin installed. Let's add a link from the menu here to Layouts to make life easier. Open src/Controller/Admin ...

5:16
Custom Field JavaScript

Go to the Question edit page. Ok: the question itself is in a textarea, which is nice. But it would be even better if we could have a fancy editor that helps with our markup. Fortunately EasyAdmin has something just for ...

5:23
AssociationField for a Many Collection

... And if we type... well... the search isn't great because it's just numbers, but you get the idea. Hit save and... nice! Next, let's dig into the powerful Field Configurators system where you can modify something about every field in the system from one place. It's also key to understanding how the core of EasyAdmin works.

6:28
Dynamically Remove the delete Action Link

... item_actions block. It would use the new, smaller _list_item_actions. Start by deleting everything and extending the base layout: @EasyAdmin/default/list.html.twig... so that we don't need to duplicate everything: Next, add ...

7:56
Form Theming For a Completely Custom Field

... false... um... we actually don't have access to our Genus object! That's a problem. But! Because we're inside EasyAdminBundle, it gives us a special easyadmin variable... with an item key equal to our Genus! Phew! Ok! In ...

8:52
... the search template ``` {% extends '@EasyAdmin/default/list.html.twig' %} {% block search_action %} Copie paste original code and add your custom form code.{% endblock %} ``` This will give you 2 drop down select box ...
... " filter in easy_admin/list.html.twig at line 4." And if i take a look at file: easy_admin/list.html.twig it looks like: ``` {% extends '@EasyAdmin/default/list.html.twig' %} {% block item_actions %} {% set ...