test system settings

This commit is contained in:
lubiana 2025-06-14 21:24:46 +02:00
parent c3411e5754
commit b4ae1f9007
Signed by: lubiana
SSH key fingerprint: SHA256:vW1EA0fRR3Fw+dD/sM0K+x3Il2gSry6YRYHqOeQwrfk
2 changed files with 221 additions and 0 deletions

View file

@ -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',