Exemplo n.º 1
0
 public function getSectionInfo($controllerName = null)
 {
     if ($controllerName == null) {
         $controllerName = $this->getControllerName();
     }
     $translator = $this->translator;
     $sectionInfo = Utilities::getAppInfo($translator, $controllerName);
     return $sectionInfo;
 }
Exemplo n.º 2
0
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     $builder->add('cyclicalEventName', null, array('label' => 'Nazwa zdarzenia', 'attr' => array('class' => 'form-control'), 'required' => true));
     $builder->add('cyclicalEventDescription', 'textarea', array('label' => 'Opis zdarzenia', 'attr' => array('class' => 'form-control'), 'required' => false));
     $builder->add('cyclicalEventWeight', 'hidden', array('data' => '5'));
     $builder->add('cyclicalEventMonth', 'choice', array('label' => false, 'choices' => Utilities::getMonthsArray($this->translator), 'attr' => array('class' => 'period chosen form-control', 'disabled' => 'disabled')));
     $builder->add('cyclicalEventWeekDay', 'choice', array('label' => false, 'choices' => Utilities::getDaysOfWeekArray($this->translator), 'attr' => array('class' => 'period chosen form-control', 'disabled' => 'disabled')));
     $builder->add('cyclicalEventDay', null, array('label' => false, 'attr' => array('class' => 'period form-control spinner', 'disabled' => 'true')));
     $builder->add('CyclicalEventHasLists', 'collection', array('type' => new CyclicalEventHasListType(), 'options' => array('idUser' => $options['idUser']), 'allow_add' => true, 'by_reference' => false, 'allow_delete' => true, 'prototype' => true, 'attr' => array('class' => 'form-control')));
     $builder->add('zapisz', 'submit', array('attr' => array('class' => 'btn btn-success btn-md')));
 }