https://github.com/a5sys/easyadminpopupbundle
https://github.com/a5sys/easyadminpopupbundle
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/a5sys/easyadminpopupbundle
- Owner: A5sys
- License: mit
- Created: 2015-09-21T14:23:13.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2021-08-02T12:47:29.000Z (almost 4 years ago)
- Last Synced: 2025-01-18T15:11:36.558Z (5 months ago)
- Language: PHP
- Size: 69.3 KB
- Stars: 0
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# EasyAdminPopupBundle
This bundle is a layer that gives the "popup" look and feel for the [EasyAdminBundle](https://github.com/javiereguiluz/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 entityThe layout must have a body block.
The layout must include:
* Jquery
* bootstrap-datetimepicker
* select2
* humaneAnd 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