test system settings
This commit is contained in:
parent
c3411e5754
commit
b4ae1f9007
2 changed files with 221 additions and 0 deletions
|
@ -9,6 +9,7 @@ use Symfony\Component\Form\AbstractType;
|
|||
use Symfony\Component\Form\Extension\Core\Type\TextType;
|
||||
use Symfony\Component\Form\FormBuilderInterface;
|
||||
use Symfony\Component\OptionsResolver\OptionsResolver;
|
||||
use Symfony\Component\Validator\Constraints\NotBlank;
|
||||
|
||||
class SystemConfigForm extends AbstractType
|
||||
{
|
||||
|
@ -18,6 +19,9 @@ class SystemConfigForm extends AbstractType
|
|||
->add('value', TextType::class, [
|
||||
'label' => 'Value',
|
||||
'help' => 'The value of the system setting',
|
||||
'constraints' => [
|
||||
new NotBlank(),
|
||||
],
|
||||
])
|
||||
->add('description', TextType::class, [
|
||||
'label' => 'Description',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue