for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Oc\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
use Symfony\Component\Form\FormBuilderInterface;
class SupportSQLFlexForm extends AbstractType
{
public function buildForm(FormBuilderInterface $builder, array $options)
// see: https://symfonycasts.com/screencast/symfony-forms/form-type-class
$builder
->add(
'content_SELECT', ChoiceType::class, [
'choices' => ['SELECT' => 'SELECT'],
'attr' => [
'style' => 'width: 300px;'
],
'disabled' => true,
'label' => false,
'trim' => true
]
)
'content_WHAT', null, [
'required' => true,
'data' => '*',
'disabled' => false,
'content_FROM', ChoiceType::class, [
'choices' => ['FROM' => 'FROM'],
'content_TABLE', ChoiceType::class, [
'choices' => ['caches' => 'caches', 'user' => 'user',],
->add('Suchen', SubmitType::class, ['attr' => ['class' => 'btn btn-primary']]);
}