forked from mirror/Part-DB.Part-DB-server
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\CurrencyAttachment;
|
||||
use App\Entity\PriceInformations\Currency;
|
||||
use App\Form\AdminPages\CurrencyAdminForm;
|
||||
use App\Services\EntityExporter;
|
||||
|
@ -54,6 +55,7 @@ class CurrencyController extends BaseAdminController
|
|||
protected $twig_template = 'AdminPages/CurrencyAdmin.html.twig';
|
||||
protected $form_class = CurrencyAdminForm::class;
|
||||
protected $route_base = 'currency';
|
||||
protected $attachment_class = CurrencyAttachment::class;
|
||||
|
||||
/**
|
||||
* @Route("/{id}/edit", requirements={"id"="\d+"}, name="currency_edit")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue