|
3 | 3 | namespace Playbloom\Satisfy\Form\Type; |
4 | 4 |
|
5 | 5 | use Playbloom\Satisfy\Form\DataTransformer\JsonTextTransformer; |
| 6 | +use Playbloom\Satisfy\Model\Abandoned; |
6 | 7 | use Playbloom\Satisfy\Model\Configuration; |
7 | 8 | use Playbloom\Satisfy\Model\PackageStability; |
8 | 9 | use Symfony\Component\Form\AbstractType; |
@@ -57,6 +58,38 @@ public function buildForm(FormBuilderInterface $builder, array $options) |
57 | 58 | new Assert\Valid(), |
58 | 59 | ], |
59 | 60 | ]) |
| 61 | + ->add('blacklist', CollectionType::class, [ |
| 62 | + 'required' => false, |
| 63 | + 'allow_add' => true, |
| 64 | + 'allow_delete' => true, |
| 65 | + 'delete_empty' => true, |
| 66 | + 'entry_type' => PackageConstraintType::class, |
| 67 | + 'prototype' => true, |
| 68 | + 'attr' => [ |
| 69 | + 'class' => 'collection_require', |
| 70 | + 'rel' => 'tooltip', |
| 71 | + 'data-title' => 'Package name (keys) and version constraints (values) to exclude after selecting packages', |
| 72 | + ], |
| 73 | + 'constraints' => [ |
| 74 | + new Assert\Valid(), |
| 75 | + ], |
| 76 | + ]) |
| 77 | + ->add('abandoned', CollectionType::class, [ |
| 78 | + 'required' => false, |
| 79 | + 'allow_add' => true, |
| 80 | + 'allow_delete' => true, |
| 81 | + 'delete_empty' => true, |
| 82 | + 'entry_type' => AbandonedType::class, |
| 83 | + 'prototype' => true, |
| 84 | + 'attr' => [ |
| 85 | + 'class' => 'collection_require', |
| 86 | + 'rel' => 'tooltip', |
| 87 | + 'data-title' => 'List of packages marked as abandoned for this repository', |
| 88 | + ], |
| 89 | + 'constraints' => [ |
| 90 | + new Assert\Valid(), |
| 91 | + ], |
| 92 | + ]) |
60 | 93 | ->add('requireAll', Type\CheckboxType::class, [ |
61 | 94 | 'required' => false, |
62 | 95 | 'attr' => [ |
|
0 commit comments