a5sys/easyadminpopup-bundle

安装: 874

依赖: 0

建议者: 0

安全: 0

星标: 0

关注者: 4

分支: 1

开放问题: 1

类型:symfony-bundle

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

This package is auto-updated.

Last update: 2024-08-29 03:29:39 UTC


README

这个包为 EasyAdminBundle 提供了一个“弹出”外观和感觉的层。

依赖项

此包需要

  • jQuery
  • bootstrap-datetimepicker
  • select2
  • humane

安装

    composer require a5sys/easyadminpopup-bundle

在 AppKernel.php 中

    new A5sys\EasyAdminPopupBundle\EasyAdminPopupBundle(),

配置

您必须设置配置

    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

布局必须有 body 块。

布局必须包含

  • jQuery
  • bootstrap-datetimepicker
  • select2
  • humane

并且使用 assetic 包含 JS

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

使用

创建一个继承 "A5sys\EasyAdminPopupBundle\Controller\AdminController" 的控制器

使用注解将此控制器包含在您的路由中