mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-28 04:30:08 +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
|
@ -32,6 +32,7 @@
|
|||
namespace App\Controller\AdminPages;
|
||||
|
||||
|
||||
use App\Entity\Attachments\ManufacturerAttachment;
|
||||
use App\Entity\Parts\Manufacturer;
|
||||
use App\Entity\Parts\Supplier;
|
||||
use App\Form\AdminPages\CompanyForm;
|
||||
|
@ -55,6 +56,7 @@ class ManufacturerController extends BaseAdminController
|
|||
protected $twig_template = 'AdminPages/ManufacturerAdmin.html.twig';
|
||||
protected $form_class = CompanyForm::class;
|
||||
protected $route_base = 'manufacturer';
|
||||
protected $attachment_class = ManufacturerAttachment::class;
|
||||
|
||||
/**
|
||||
* @Route("/{id}/edit", requirements={"id"="\d+"}, name="manufacturer_edit")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue