a5sys/easyadminpopup-bundle

Installs: 744

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 1

Open Issues: 1

Type:symfony-bundle

v2.0.0 2020-04-17 14:30 UTC

This package is auto-updated.

Last update: 2020-09-17 15:29:15 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