mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-25 19:28:51 +02:00
Added possibility to add/edit attachments on Admin pages.
This commit is contained in:
parent
97cb91a3b2
commit
eb1d8fd4e4
28 changed files with 247 additions and 25 deletions
|
@ -33,6 +33,7 @@ namespace App\Controller;
|
|||
|
||||
|
||||
use App\Controller\AdminPages\BaseAdminController;
|
||||
use App\Entity\Attachments\GroupAttachment;
|
||||
use App\Entity\UserSystem\Group;
|
||||
use App\Form\AdminPages\GroupAdminForm;
|
||||
use App\Services\EntityExporter;
|
||||
|
@ -52,6 +53,7 @@ class GroupController extends BaseAdminController
|
|||
protected $twig_template = 'AdminPages/GroupAdmin.html.twig';
|
||||
protected $form_class = GroupAdminForm::class;
|
||||
protected $route_base = 'group';
|
||||
protected $attachment_class = GroupAttachment::class;
|
||||
|
||||
/**
|
||||
* @Route("/{id}/edit", requirements={"id"="\d+"}, name="group_edit")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue