<commit_before><?php

/*
 * This file is part of the Cyclear-game package.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Cyclear\GameBundle\Form\Admin\Transfer;

use Cyclear\GameBundle\Entity\Transfer;
use Symfony\Component\Form\Extension\Core\ChoiceList\ChoiceList;

class TransferEditType extends \Symfony\Component\Form\AbstractType
{

    public function getName()
    {
        return 'cyclear_gamebundle_transferedittype';
    }

    public function buildForm(\Symfony\Component\Form\FormBuilderInterface $builder, array $options)
    {
        $choices = array(Transfer::DRAFTTRANSFER, Transfer::ADMINTRANSFER, Transfer::USERTRANSFER);
        $choicelist = new ChoiceList($choices, array('draft transfer', 'admin transfer', 'user transfer'));
        $builder
            ->add('renner', 'renner_selector', array('read_only' => true))
            ->add('transferType', 'choice', array('choice_list' => $choicelist))
            ->add('datum', 'date', array('format' => 'dd-MM-y'))
            ->add('seizoen', 'seizoen_selector')

        ;
    }
}<commit_msg>fixed keep time when editing transfer<commit_after><?php

/*
 * This file is part of the Cyclear-game package.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Cyclear\GameBundle\Form\Admin\Transfer;

use Cyclear\GameBundle\Entity\Transfer;
use Symfony\Component\Form\Extension\Core\ChoiceList\ChoiceList;

class TransferEditType extends \Symfony\Component\Form\AbstractType
{

    public function getName()
    {
        return 'cyclear_gamebundle_transferedittype';
    }

    public function buildForm(\Symfony\Component\Form\FormBuilderInterface $builder, array $options)
    {
        $choices = array(Transfer::DRAFTTRANSFER, Transfer::ADMINTRANSFER, Transfer::USERTRANSFER);
        $choicelist = new ChoiceList($choices, array('draft transfer', 'admin transfer', 'user transfer'));
        $builder
            ->add('renner', 'renner_selector', array('read_only' => true))
            ->add('transferType', 'choice', array('choice_list' => $choicelist))
            ->add('datum', 'datetime')
            ->add('seizoen', 'seizoen_selector')

        ;
    }
}
{'fraction_non_alphanumeric': 0.1303436714165968, 'fraction_numerical': 0.0, 'mean_word_length': 3.6349514563106795, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 22, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5094434', 'n_tokens_mistral': 690, 'n_tokens_neox': 686, 'n_words': 163}