Getting started

Admin UI contains minimalist generic templates and routes for your admin panels.

Installation

Install the package using Composer and Symfony Flex:

composer require sylius/admin-ui

Basic routes

  • Dashboard - sylius_admin_ui_dashboard

  • Login - sylius_admin_ui_login

  • LoginCheck - sylius_admin_ui_login_check

  • Logout - sylius_admin_ui_logout

Minimalist templates

All these following templates are kind of "empty".

You can install the optional BootstrapAdminUi package to configure their contents automatically.

Crud templates

  • crud/create.html.twig

  • crud/index.html.twig

  • crud/show.html.twig

  • crud/update.html.twig

Usage with Sylius Resource package

src/Entity/Speaker.php
namespace App\Entity;

use Sylius\Resource\Metadata\AsResource;
use Sylius\Resource\Model\ResourceInterface;

#[AsResource(
    templatesDir: '@SyliusAdminUi/crud',
)]
class Speaker implements ResourceInterface
{
    // ...
}

Dashboard

  • dashboard/index.html.twig

Login

  • security/login.html.twig

Last updated