]>
Commit | Line | Data |
---|---|---|
34be2d5d JB |
1 | <?php |
2 | ||
3 | namespace Wallabag\CoreBundle\Form\Type; | |
4 | ||
5 | use Symfony\Component\Form\AbstractType; | |
6 | use Symfony\Component\Form\Extension\Core\Type\FileType; | |
7 | use Symfony\Component\Form\Extension\Core\Type\SubmitType; | |
8 | use Symfony\Component\Form\FormBuilderInterface; | |
9 | ||
10 | class TaggingRuleImportType extends AbstractType | |
11 | { | |
12 | public function buildForm(FormBuilderInterface $builder, array $options) | |
13 | { | |
14 | $builder | |
15 | ->add('file', FileType::class, [ | |
16 | 'label' => 'config.form_rules.file_label', | |
17 | 'required' => true, | |
18 | ]) | |
19 | ->add('import', SubmitType::class, [ | |
20 | 'label' => 'config.form_rules.import_submit', | |
21 | ]) | |
22 | ; | |
23 | } | |
24 | ||
25 | public function getBlockPrefix() | |
26 | { | |
27 | return 'upload_tagging_rule_file'; | |
28 | } | |
29 | } |