description |
---|
Bootstrap Admin Ui allow you to build your Bootstrap admin panels with Sylius and Symfony UX. |
This package configures content of the AdminUi package templates.
Install the package using Composer and Symfony Flex:
composer require sylius/bootstrap-admin-ui
Content of CRUD templates is split into configurable blocks.
You are able to add new blocks, disable existing ones, or reorder them using the TwigHooks package.
This package configures content of the template to create a new resource.
This adds configurable blocks into the @SyliusAdminUi/crud/create.html.twig
template.
Overview of the blocks
flowchart LR
Template(Create template) --> Hook{Hook 'create'}
Hook --> Sidebar([Sidebar])
Hook --> Navbar([Navbar])
Hook --> Content([Content])
Content --> HookContent{Hook 'content'}
HookContent --> Flashes([Flashes])
HookContent --> Header([Header])
HookContent --> FormErrorAlert([Form Error Alert])
HookContent --> Form([Form])
Overview of the block templates
flowchart LR
Template(@SyliusAdminUi/crud/create.html.twig) --> Hook{Hook 'create'}
Hook --> Sidebar([@SyliusBootstrapAdminUi/shared/crud/common/sidebar.html.twig])
Hook --> Navbar([@SyliusBootstrapAdminUi/shared/crud/common/navbar.html.twig])
Hook --> Content([@SyliusBootstrapAdminUi/shared/crud/common/content.html.twig])
This package configures content of the template to list resources.
This adds configurable blocks into the @SyliusAdminUi/crud/index.html.twig
template.
Overview of the blocks
flowchart LR
Template(Index template) --> Hook{Hook 'index'}
Hook --> Sidebar([Sidebar])
Hook --> Navbar([Navbar])
Hook --> Content([Content])
Content --> HookContent{Hook 'content'}
HookContent --> Flashes([Flashes])
HookContent --> Header([Header])
HookContent --> Grid([Grid])
This package configures content of the template to show resource details.
This adds configurable blocks into the @SyliusAdminUi/crud/show.html.twig
template.
Overview of the blocks
flowchart LR
Template(Show template) --> Hook{Hook 'show'}
Hook --> Sidebar([Sidebar])
Hook --> Navbar([Navbar])
Hook --> Content([Content])
Content --> HookContent{Hook 'content'}
HookContent --> Flashes([Flashes])
HookContent --> Header([Header])