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