mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-03 17:55:03 +02:00
Allow users to save a new label profiles directly from the label generator dialog
This fixes issue #806
This commit is contained in:
parent
9d09543eb9
commit
f75704f77c
4 changed files with 76 additions and 1 deletions
|
@ -71,6 +71,22 @@ class LabelDialogType extends AbstractType
|
|||
'label' => false,
|
||||
'disabled' => !$this->security->isGranted('@labels.edit_options') || $options['disable_options'],
|
||||
]);
|
||||
|
||||
$builder->add('save_profile_name', TextType::class, [
|
||||
'required' => false,
|
||||
'attr' =>[
|
||||
'placeholder' => 'label_generator.save_profile_name',
|
||||
]
|
||||
]);
|
||||
|
||||
$builder->add('save_profile', SubmitType::class, [
|
||||
'label' => 'label_generator.save_profile',
|
||||
'disabled' => !$this->security->isGranted('@labels.create_profiles'),
|
||||
'attr' => [
|
||||
'class' => 'btn btn-outline-success'
|
||||
]
|
||||
]);
|
||||
|
||||
$builder->add('update', SubmitType::class, [
|
||||
'label' => 'label_generator.update',
|
||||
]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue