mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-12-17 08:29:31 +00:00
Added forms to change EDA infos of footprints and categories
This commit is contained in:
parent
b5c7a789a2
commit
30b2c8b841
8 changed files with 203 additions and 9 deletions
|
|
@ -23,6 +23,7 @@ declare(strict_types=1);
|
|||
namespace App\Form\AdminPages;
|
||||
|
||||
use App\Entity\Base\AbstractNamedDBElement;
|
||||
use App\Form\Part\EDA\EDACategoryInfoType;
|
||||
use App\Form\Type\RichTextEditorType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\CheckboxType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\TextType;
|
||||
|
|
@ -104,5 +105,11 @@ class CategoryAdminForm extends BaseEntityAdminForm
|
|||
],
|
||||
'disabled' => !$this->security->isGranted($is_new ? 'create' : 'edit', $entity),
|
||||
]);
|
||||
|
||||
//EDA info
|
||||
$builder->add('eda_info', EDACategoryInfoType::class, [
|
||||
'label' => false,
|
||||
'required' => false,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -23,6 +23,8 @@ declare(strict_types=1);
|
|||
namespace App\Form\AdminPages;
|
||||
|
||||
use App\Entity\Base\AbstractNamedDBElement;
|
||||
use App\Entity\EDA\EDAFootprintInfo;
|
||||
use App\Form\Part\EDA\EDAFootprintInfoType;
|
||||
use App\Form\Type\MasterPictureAttachmentType;
|
||||
use Symfony\Component\Form\FormBuilderInterface;
|
||||
|
||||
|
|
@ -37,5 +39,11 @@ class FootprintAdminForm extends BaseEntityAdminForm
|
|||
'filter' => '3d_model',
|
||||
'entity' => $entity,
|
||||
]);
|
||||
|
||||
//EDA info
|
||||
$builder->add('eda_info', EDAFootprintInfoType::class, [
|
||||
'label' => false,
|
||||
'required' => false,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue