File: /var/www/dvpis2026/dvpis.kaunokolegija.lt/src/Form/MeovType.php
<?php
namespace App\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
class MeovType extends AbstractType
{
/**
* {@inheritdoc}
*/
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder
->add('shortName', null, ['label' => 'Kodas',])
->add('name', null, ['label' => 'Veikla',])
->add('type', ChoiceType::class, [
'label' => 'Tipas',
// 'multiple' => true,
// 'expanded' => true,
'choices' => [
'Metodinė veikla' => 'Metodinė veikla',
'Ekspertinė veikla' => 'Ekspertinė veikla',
'Organizacinė veikla' => 'Organizacinė veikla',
]
])
->add('minmaxHours', null, ['label' => 'Min/Max Valandų kiekis',])
->add('answerField', null, ['label' => 'Ivykdymo formos klausimas',])
;
}
/**
* {@inheritdoc}
*/
public function configureOptions(OptionsResolver $resolver)
{
$resolver->setDefaults(array(
'data_class' => 'App\Entity\Meov'
));
}
/**
* {@inheritdoc}
*/
public function getBlockPrefix()
{
return 'App_meov';
}
}