mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-02 05:19:35 +00:00
Add configurable KiCad field export for part parameters
Add a kicad_export checkbox to parameters, allowing users to control which specifications appear as fields in the KiCad HTTP library API. Parameters with kicad_export enabled are included using their formatted value, without overwriting hardcoded fields like description or Stock.
This commit is contained in:
parent
44c5d9d727
commit
9178154986
8 changed files with 174 additions and 0 deletions
|
|
@ -55,6 +55,7 @@ use App\Entity\Parameters\SupplierParameter;
|
|||
use App\Entity\Parts\MeasurementUnit;
|
||||
use App\Form\Type\ExponentialNumberType;
|
||||
use Symfony\Component\Form\AbstractType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\CheckboxType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\NumberType;
|
||||
use Symfony\Component\Form\Extension\Core\Type\TextType;
|
||||
use Symfony\Component\Form\FormBuilderInterface;
|
||||
|
|
@ -147,6 +148,11 @@ class ParameterType extends AbstractType
|
|||
'class' => 'form-control-sm',
|
||||
],
|
||||
]);
|
||||
|
||||
$builder->add('kicad_export', CheckboxType::class, [
|
||||
'label' => false,
|
||||
'required' => false,
|
||||
]);
|
||||
}
|
||||
|
||||
public function finishView(FormView $view, FormInterface $form, array $options): void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue