Browse Source

add user crud configuration to permit overriding

develop
Simon Vieille 1 week ago
parent
commit
ae944593f3
  1. 7
      core/Controller/User/UserAdminController.php
  2. 1
      core/Resources/views/user/user_admin/index.html.twig
  3. 1
      core/Resources/views/user/user_admin/new.html.twig
  4. 1
      core/Resources/views/user/user_admin/show.html.twig

7
core/Controller/User/UserAdminController.php

@ -5,12 +5,11 @@ namespace App\Core\Controller\User;
use App\Core\Controller\Admin\Crud\CrudController;
use App\Core\Crud\CrudConfiguration;
use App\Core\Crud\Field;
use App\Core\Entity\EntityInterface;
use App\Core\Event\Account\PasswordRequestEvent;
use App\Core\Factory\UserFactory as Factory;
use App\Core\Form\UserType as Type;
use App\Core\Manager\EntityManager;
use App\Entity\User as Entity;
use App\Form\UserType as Type;
use App\Repository\UserRepositoryQuery as RepositoryQuery;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\HttpFoundation\Request;
@ -104,6 +103,10 @@ class UserAdminController extends CrudController
->setForm('edit', Type::class, [])
->setForm('new', Type::class)
->setView('form', '@Core/user/user_admin/_form.html.twig')
->setView('index', '@Core/user/user_admin/index.html.twig')
->setView('new', '@Core/user/user_admin/new.html.twig')
->setView('show', '@Core/user/user_admin/show.html.twig')
->setView('show_entity', '@Core/user/user_admin/_show.html.twig')
->setView('edit', '@Core/user/user_admin/edit.html.twig')

1
core/Resources/views/user/user_admin/index.html.twig

@ -0,0 +1 @@
{% extends '@Core/admin/crud/index.html.twig' %}

1
core/Resources/views/user/user_admin/new.html.twig

@ -0,0 +1 @@
{% extends '@Core/admin/crud/new.html.twig' %}

1
core/Resources/views/user/user_admin/show.html.twig

@ -0,0 +1 @@
{% extends '@Core/admin/crud/show.html.twig' %}
Loading…
Cancel
Save