a5sys/easyadminpopup-bundle

Installs: 879

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 4

Forks: 1

Open Issues: 1

Type:symfony-bundle

v2.0.1 2021-08-02 12:43 UTC

This package is auto-updated.

Last update: 2024-10-29 03:53:30 UTC


README

This bundle is a layer that gives the "popup" look and feel for the EasyAdminBundle

Dependency

This bundle requires:

  • Jquery
  • bootstrap-datetimepicker
  • select2
  • humane

Installation

    composer require a5sys/easyadminpopup-bundle

In AppKernel.php

    new A5sys\EasyAdminPopupBundle\EasyAdminPopupBundle(),

Configuration

You have to set the cofiguration:

    easy_admin_popup:
        layout: "::admin_layout.html.twig" #mandatory
        customized_flash: false #optionnal, if you want to translate each entity crud flash. The translate key would be flash.User.persist (or update/remove) for a User entity

The layout must have a body block.

The layout must include:

  • Jquery
  • bootstrap-datetimepicker
  • select2
  • humane

And include the JS using assetic:

  • '@EasyAdminPopupBundle/Resources/assets/js/form-modal.js'
  • '@EasyAdminPopupBundle/Resources/assets/js/humane-error.js'

Use

Create a controller that extends "A5sys\EasyAdminPopupBundle\Controller\AdminController"

Include this controller in your routing using annotation