HEX
Server: Apache
System: Linux WWW 6.1.0-40-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.153-1 (2025-09-20) x86_64
User: web11 (1011)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /var/www/dvpis2025/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';
    }
}