Skip to content

Latest commit

 

History

History
102 lines (67 loc) · 2.56 KB

getting-started.md

File metadata and controls

102 lines (67 loc) · 2.56 KB
description
Bootstrap Admin Ui allow you to build your Bootstrap admin panels with Sylius and Symfony UX.

Getting started

This package configures content of the AdminUi package templates.

Installation

Install the package using Composer and Symfony Flex:

composer require sylius/bootstrap-admin-ui

Configuring the CRUD templates

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.

Create

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])
Loading

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])
Loading

Index

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])
Loading

Show

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])
Loading