Beispiel #1
0
 /**
  * define form fields.
  *
  * @param FormBuilderInterface $builder
  *
  * @param array $options
  */
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     if ($options['mode'] === Widget::MODE_STATIC) {
         $builder->add('side', null, ['label' => 'widget_force.form.side.label']);
     }
     parent::buildForm($builder, $options);
 }
 /**
  * define form fields
  * @param FormBuilderInterface $builder
  * @param array $options
  */
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     $builder->add('labelVisible', 'checkbox', array('label' => 'widget.progress.form.label.visible.label', 'required' => false))->add('striped', 'checkbox', array('label' => 'widget.progress.form.striped.label', 'required' => false))->add('animated', 'checkbox', array('label' => 'widget.progress.form.animated.label', 'required' => false))->add('style', 'choice', array('label' => 'widget.button.form.label.style', 'choices' => array('success' => 'widget.progress.form.choice.style.label.success', 'info' => 'widget.progress.form.choice.style.label.info', 'warning' => 'widget.progress.form.choice.style.label.warning', 'danger' => 'widget.progress.form.choice.style.label.danger'), 'required' => false))->add('displayedValue', null, array('label' => 'widget_progress.form.displayedValue.label', 'required' => false))->add('minimumValue', null, array('label' => 'widget_progress.form.minimumValue.label'));
     $mode = $options['mode'];
     if ($mode === Widget::MODE_STATIC) {
         $builder->add('maximumValue', null, array('label' => 'widget_progress.form.maximumValue.label', 'required' => true))->add('currentValue', null, array('label' => 'widget_progress.form.currentValue.label', 'required' => true));
     }
     parent::buildForm($builder, $options);
 }
 /**
  * define form fields
  *
  * @param FormBuilderInterface $builder
  * @param array                $options
  */
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     $entityName = $options['entityName'];
     //no entity name provided in case of static mode for example
     if ($entityName === null) {
         $builder->add('image', 'media', array('label' => 'widget_image.form.image.label'))->add('alt', null, array('label' => 'widget_image.form.alt.label', 'vic_help_label' => 'widget_image.form.alt.help_label'))->add('title', null, array('label' => 'widget_image.form.title.label'))->add('legend', null, array('label' => 'widget_image.form.legend.label'))->add('width', null, array('label' => 'widget_image.form.width.label', 'vic_help_label' => 'widget_image.form.width.help_label'))->add('height', null, array('label' => 'widget_image.form.height.label', 'vic_help_label' => 'widget_image.form.width.help_label'))->add('link', 'victoire_link')->add('lazyLoad', null, array('label' => 'widget_image.form.lazyLoad.label', 'vic_help_label' => 'widget_image.form.lazyLoad.help_label', 'required' => false));
     }
     parent::buildForm($builder, $options);
 }
 /**
  * define form fields
  * @param FormBuilderInterface $builder
  * @param array                $options
  *
  * @return void
  *
  * @throws \Exception
  */
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     //choose form mode
     if ($options['entityName'] === null) {
         //if no entity is given, we generate the static form
         $builder->add('content', 'ckeditor', array());
     }
     parent::buildForm($builder, $options);
 }
 /**
  * define form fields.
  *
  * @param FormBuilderInterface $builder
  *
  * @param array $options
  */
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     if (Widget::MODE_STATIC == $options['mode']) {
         $builder->add('title', null, ['label' => 'widget_slidernav.form.title.label'])->add('picture', 'media', ['label' => 'widget_slidernav.form.picture.label'])->add('leftLink', 'victoire_link', ['label' => 'widget_slidernav.form.leftLink.label'])->add('leftPicture', 'media', ['label' => 'widget_slidernav.form.leftPicture.label'])->add('rightLink', 'victoire_link', ['label' => 'widget_slidernav.form.rightLink.label'])->add('rightPicture', 'media', ['label' => 'widget_slidernav.form.rightPicture.label']);
     } else {
         $builder->add('targetPattern', null, ['label' => 'widget_slidernav.form.targetPattern.label', 'empty_value' => false, 'query_builder' => function (EntityRepository $er) use($options) {
             return $er->getPagePatternByBusinessEntity($options['businessEntityId']);
         }]);
     }
     parent::buildForm($builder, $options);
 }
 /**
  * define form fields
  *
  * @param FormBuilderInterface $builder
  * @param array                $options
  */
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     if ($options['mode'] === null || $options['mode'] === Widget::MODE_STATIC) {
         $builder->add('image', 'media', array('label' => 'widget_image.form.image.label'))->add('opacity', null, array('label' => 'widget_image.form.opacity.label', 'vic_help_block' => 'widget_image.form.opacity.help_block'))->add('cover', null, array('label' => 'widget_image.form.cover.label', 'required' => false, 'attr' => array('data-refreshOnChange' => "true")));
         $builder->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) {
             self::manageCoverRelativeFields($event->getForm(), $event->getData()->isCover());
         });
         $builder->get('cover')->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) {
             self::manageCoverRelativeFields($event->getForm()->getParent(), (bool) $event->getData());
         });
     }
     parent::buildForm($builder, $options);
 }
 /**
  * define form fields
  * @param FormBuilderInterface $builder
  * @param array $options
  */
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     parent::buildForm($builder, $options);
     $builder->add('type0', 'choice', array('choices' => array('pie' => 'Camembert', 'column' => 'Diagramme', 'line' => 'Courbe'), 'required' => true, 'label' => 'widget.statistic.form.type0.label', 'empty_value' => false))->add('showLabel0', 'checkbox', array('required' => false, 'label' => 'widget.statistic.form.showLabel0.label', 'widget_checkbox_label' => 'widget'))->add('fontSize0', 'integer', array('data' => 12, 'required' => true, 'label' => 'widget.statistic.form.fontSize0.label', 'help_block' => 'widget.statistic.form.fontSize0.helpBlock'))->add('pieSize0', 'integer', array('data' => 100, 'required' => true, 'label' => 'widget.statistic.form.pieSize0.label', 'help_block' => 'widget.statistic.form.pieSize0.helpBlock'))->add('title0', null, array('required' => true, 'label' => 'widget.statistic.form.title0.label'))->add('width0', 'integer', array('data' => 350, 'required' => true, 'label' => 'widget.statistic.form.width0.label', 'help_block' => 'widget.statistic.form.width0.helpBlock'))->add('height0', 'integer', array('data' => 350, 'required' => true, 'label' => 'widget.statistic.form.height0.label', 'help_block' => 'widget.statistic.form.height0.helpBlock'))->add('coordonatesYAxis0', null, array('required' => false, 'label' => 'widget.statistic.form.coordonatesYAxis0.label', 'help_block' => 'widget.statistic.form.coordonatesYAxis0.helpBlock'))->add('data0', 'hidden', array('required' => false, 'label' => 'widget.statistic.form.data0.label', 'data' => 'Array'))->add('isDoubleChart', 'checkbox', array('required' => false, 'label' => 'widget.statistic.form.isDoubleChart.label', 'help_block' => 'widget.statistic.form.isDoubleChart.helpBlock', 'widget_checkbox_label' => 'widget'))->add('type1', 'choice', array('choices' => array('pie' => 'Camembert', 'column' => 'Diagramme', 'line' => 'Courbe'), 'required' => false, 'empty_value' => false, 'label' => 'widget.statistic.form.type1.label'))->add('showLabel1', 'checkbox', array('required' => false, 'label' => 'widget.statistic.form.showLabel1.label', 'widget_checkbox_label' => 'widget'))->add('fontSize1', 'integer', array('data' => 12, 'required' => false, 'label' => 'widget.statistic.form.fontSize1.label', 'help_block' => 'widget.statistic.form.fontSize1.helpBlock'))->add('pieSize1', 'integer', array('data' => 100, 'required' => false, 'label' => 'widget.statistic.form.pieSize1.label', 'help_block' => 'widget.statistic.form.pieSize1.helpBlock'))->add('title1', null, array('required' => false, 'label' => 'widget.statistic.form.title1.label'))->add('width1', 'integer', array('data' => 350, 'required' => false, 'label' => 'widget.statistic.form.width1.label', 'help_block' => 'widget.statistic.form.width1.helpBlock'))->add('height1', 'integer', array('data' => 350, 'required' => false, 'label' => 'widget.statistic.form.height1.label', 'help_block' => 'widget.statistic.form.height1.helpBlock'))->add('coordonatesYAxis1', null, array('required' => false, 'label' => 'widget.statistic.form.coordonatesYAxis1.label', 'help_block' => 'widget.statistic.form.coordonatesYAxis1.helpBlock'))->add('data1', 'hidden', array('required' => false, 'label' => 'widget.statistic.form.data1.label'));
     $builder->addEventListener(FormEvents::POST_SUBMIT, function (FormEvent $event) {
         $widget = $event->getData();
         $form = $event->getForm();
         $widget->setData0(serialize($widget->getData0()));
         if ($widget->getIsDoubleChart()) {
             $widget->setData1(serialize($widget->getData1()));
         } else {
             $widget->setData1('');
         }
     });
 }
 /**
  * define form fields
  * @param FormBuilderInterface $builder
  * @param array                $options
  */
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     $namespace = $options['namespace'];
     $entityName = $options['entityName'];
     if ($entityName !== null) {
         if ($namespace === null) {
             throw new \Exception('The namespace is mandatory if the entity_name is given.');
         }
     }
     //choose form mode
     if ($entityName === null) {
         //if no entity is given, we generate the static form
         $builder->add('facebookEnabled', null, array('label' => 'victoire.sharethis.form.facebookEnabled.label', 'required' => false))->add('twitterEnabled', null, array('label' => 'victoire.sharethis.form.twitterEnabled.label', 'required' => false))->add('googleplusEnabled', null, array('label' => 'victoire.sharethis.form.googleplusEnabled.label', 'required' => false))->add('linkedinEnabled', null, array('label' => 'victoire.sharethis.form.linkedinEnabled.label', 'required' => false))->add('viadeoEnabled', null, array('label' => 'victoire.sharethis.form.viadeoEnabled.label', 'required' => false))->add('emailEnabled', null, array('label' => 'victoire.sharethis.form.emailEnabled.label', 'required' => false))->add('pinterestEnabled', null, array('label' => 'victoire.sharethis.form.pinterestEnabled.label', 'required' => false))->add('bufferEnabled', null, array('label' => 'victoire.sharethis.form.bufferEnabled.label', 'required' => false))->add('shareThisEnabled', null, array('label' => 'victoire.sharethis.form.shareThisEnabled.label', 'required' => false));
     }
     parent::buildForm($builder, $options);
 }
 /**
  * define form fields
  * @param FormBuilderInterface $builder
  * @param array                $options
  */
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     $mode = $options['mode'];
     $namespace = $options['namespace'];
     $businessEntityId = $options['businessEntityId'];
     if ($businessEntityId !== null) {
         if ($namespace === null) {
             throw new \Exception('The namespace is mandatory if the entity_id is given.');
         }
     }
     $builder->add('facebookEnabled', null, array('label' => 'victoire.sharethis.form.facebookEnabled.label', 'required' => false))->add('twitterEnabled', null, array('label' => 'victoire.sharethis.form.twitterEnabled.label', 'required' => false))->add('googleplusEnabled', null, array('label' => 'victoire.sharethis.form.googleplusEnabled.label', 'required' => false))->add('linkedinEnabled', null, array('label' => 'victoire.sharethis.form.linkedinEnabled.label', 'required' => false))->add('viadeoEnabled', null, array('label' => 'victoire.sharethis.form.viadeoEnabled.label', 'required' => false))->add('emailEnabled', null, array('label' => 'victoire.sharethis.form.emailEnabled.label', 'required' => false))->add('pinterestEnabled', null, array('label' => 'victoire.sharethis.form.pinterestEnabled.label', 'required' => false))->add('bufferEnabled', null, array('label' => 'victoire.sharethis.form.bufferEnabled.label', 'required' => false))->add('shareThisEnabled', null, array('label' => 'victoire.sharethis.form.shareThisEnabled.label', 'required' => false))->add('link', 'victoire_link', array("linkTypeChoices" => array_merge(LinkType::getDefaultLinkTypeChoices(), array("none" => "victoire.sharethis.form.linkType.choices.none.label"))));
     if ($mode === Widget::MODE_STATIC) {
         $builder->add('twitterVia', null, array('label' => 'victoire.sharethis.form.twitterVia.label', 'required' => false));
     }
     parent::buildForm($builder, $options);
 }
 /**
  * define form fields.
  *
  * @param FormBuilderInterface $builder
  * @param array                $options
  */
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     $this->mode = $options['mode'];
     $this->namespace = $options['namespace'];
     $this->businessEntityId = $options['businessEntityId'];
     $this->widget = $options['widget'];
     $builder->add('autoplay', null, ['label' => 'widget_slider.form.autoplay.label', 'attr' => ['data-refreshOnChange' => 'true', 'target' => '.vic-tab-pane.vic-active']])->add('adaptiveHeight', null, ['label' => 'widget_slider.form.adaptiveHeight.label']);
     self::addSliderItems($builder);
     if ($this->mode != Widget::MODE_STATIC) {
         self::addQueryAndBusinessEntityFields($builder);
     }
     parent::buildForm($builder, $options);
     $builder->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) {
         $library = $event->getData()->getLibrary() !== null ? $event->getData()->getLibrary() : self::DEFAULT_LIBRARY;
         self::manageLibrary($event->getForm(), $library);
         self::manageAutoplaySpeed($event->getForm(), $event->getData()->getAutoplay());
     })->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) {
         $library = $event->getData()['library'] !== null ? $event->getData()['library'] : self::DEFAULT_LIBRARY;
         $autoplay = array_key_exists('autoplay', $event->getData()) && $event->getData()['autoplay'];
         self::manageLibrary($event->getForm(), $library);
         self::manageAutoplaySpeed($event->getForm(), $autoplay);
     });
 }
 /**
  * define form fields
  * @param FormBuilderInterface $builder
  * @param array $options
  */
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     parent::buildForm($builder, $options);
     $builder->add('title', null, array('label' => 'widget_form.form.title.label'))->add('attachmentUrl', 'media', array('label' => 'widget_form.form.attachmentUrl.label'))->add('attachmentUrl2', 'media', array('label' => 'widget_form.form.attachmentUrl2.label'))->add('attachmentUrl3', 'media', array('label' => 'widget_form.form.attachmentUrl3.label'))->add('attachmentUrl4', 'media', array('label' => 'widget_form.form.attachmentUrl4.label'))->add('attachmentUrl5', 'media', array('label' => 'widget_form.form.attachmentUrl5.label'))->add('attachmentUrl6', 'media', array('label' => 'widget_form.form.attachmentUrl6.label'))->add('attachmentUrl7', 'media', array('label' => 'widget_form.form.attachmentUrl7.label'))->add('subject', null, array('label' => 'widget_form.form.subject.label'))->add('targetEmail', null, array('label' => 'widget_form.form.targetEmail.label'))->add('autoAnswer', null, array('label' => 'widget_form.form.autoAnswer.label'))->add('autoAnswer', null, array('label' => 'widget_form.form.autoAnswer.label'))->add('message', 'ckeditor', array('label' => 'widget_form.form.message.label', 'required' => true, 'vic_help_block' => 'widget_form.form.message.help_block', 'config' => array('toolbar' => array(array('name' => 'styles', 'items' => array('Font', 'FontSize')), array('name' => 'basicstyles', 'items' => array('Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript')), array('name' => 'paragraph', 'items' => array('NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock')), '/', array('name' => 'clipboard', 'items' => array('Undo', 'Redo')), array('name' => 'insert', 'items' => array('Table', 'HorizontalRule', 'SpecialChar'))))))->add('questions', 'collection', array('allow_add' => true, 'allow_delete' => true, 'by_reference' => false, 'type' => new WidgetFormQuestionType(), 'label' => 'widget_form.form.questions.label', 'vic_widget_items_attr' => array('class' => "question")))->add('submitLabel', null, array('label' => 'widget_form.form.submitLabel.label', 'required' => true))->add('submitIcon', 'font_awesome_picker', array('label' => 'widget_form.form.submitIcon.label', 'required' => false))->add('successNotification', null, array('label' => 'widget_form.form.successNotification.label', 'required' => false))->add('successMessage', null, array('label' => 'widget_form.form.successMessage.label', 'required' => false))->add('errorNotification', null, array('label' => 'widget_form.form.errorNotification.label', 'required' => false))->add('errorMessage', null, array('label' => 'widget_form.form.errorMessage.label', 'required' => false));
     if ($this->formPrefill) {
         $builder->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) {
             $widgetFormSlot = $event->getData();
             $form = $event->getForm();
             if (!$widgetFormSlot || null === $widgetFormSlot->getId()) {
                 $formPrefill = $this->formPrefill;
                 foreach ($formPrefill as $question) {
                     $newQuestion = new WidgetFormQuestion();
                     $newQuestion->setTitle($question['title']);
                     $newQuestion->setPosition($question['position']);
                     $newQuestion->setRequired($question['required']);
                     $newQuestion->setType($question['type']);
                     $newQuestion->setProposal($question['proposal']);
                     $widgetFormSlot->addQuestion($newQuestion);
                 }
             }
         });
     }
 }
 /**
  * define form fields.
  *
  * @param FormBuilderInterface $builder
  *
  * @param array $options
  */
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     $builder->add('length', null, ['label' => 'widget_lightsaber.form.length.label'])->add('crystal', null, ['label' => 'widget_lightsaber.form.crystal.label'])->add('color', null, ['label' => 'widget_lightsaber.form.color.label']);
     parent::buildForm($builder, $options);
 }
 /**
  * define form fields
  * @param FormBuilderInterface $builder
  * @param array $options
  */
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     $builder->add('file', 'media', array('label' => 'widget_file.form.file.label'))->add('linkLabel', null, array('label' => 'widget_file.form.linkLabel.label'));
     parent::buildForm($builder, $options);
 }
 /**
  * define form fields
  *
  * @param FormBuilderInterface $builder
  * @param array                $options
  *
  * @throws \Exception
  */
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     //if no entity is given, we generate the static form
     $builder->add('title', null, array('label' => 'widget.button.form.label.title'))->add('hoverTitle', null, array('label' => 'widget.button.form.label.hoverTitle'))->add('size', 'choice', array('label' => 'widget.button.form.label.size', 'choices' => array('md' => 'widget.button.form.choice.size.normal', 'sm' => 'widget.button.form.choice.size.tiny', 'lg' => 'widget.button.form.choice.size.large'), 'required' => true))->add('style', 'choice', array('label' => 'widget.button.form.label.style', 'choices' => array('default' => 'widget.button.form.choice.style.label.default', 'primary' => 'widget.button.form.choice.style.label.primary', 'success' => 'widget.button.form.choice.style.label.success', 'info' => 'widget.button.form.choice.style.label.info', 'warning' => 'widget.button.form.choice.style.label.warning', 'danger' => 'widget.button.form.choice.style.label.danger', 'link' => 'widget.button.form.choice.style.label.link'), 'required' => true))->add('link', 'victoire_link')->add('isBlock', null, array('label' => 'widget.button.form.label.isBlock'))->add('isCallToAction', null, array('label' => 'widget.button.form.label.isBlock.isCallToAction'))->add('icon', 'font_awesome_picker');
     parent::buildForm($builder, $options);
 }
 /**
  * define form fields.
  *
  * @param FormBuilderInterface $builder
  *
  * @param array $options
  */
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     $builder->add('rows', CollectionType::class, ['entry_type' => RowType::class, 'required' => false, 'allow_add' => true, 'allow_delete' => true, 'by_reference' => false, 'prototype' => true, 'prototype_name' => '__ORDERED__'])->add('columnFields', CollectionType::class, ['entry_type' => FieldType::class, 'required' => false, 'allow_add' => true, 'allow_delete' => true, 'by_reference' => false, 'prototype' => true, 'prototype_name' => '__ABSCISSA__'])->add('option', OptionValueType::class, ['label' => false, 'required' => false])->add('fullWidth', CheckboxType::class, ['label' => 'widget.table.form.fullWidth', 'required' => false]);
     parent::buildForm($builder, $options);
 }
 /**
  * define form fields.
  *
  * @param FormBuilderInterface $builder
  * @param array                $options
  */
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     $mode = $options['mode'];
     parent::buildForm($builder, $options);
 }
 /**
  * define form fields.
  *
  * @param FormBuilderInterface $builder
  *
  * @param array $options
  */
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     $builder->add('leftPicture', 'media', ['label' => 'widget_picturecomparator.form.leftPicture.label'])->add('leftPictureLabel', null, ['label' => 'widget_picturecomparator.form.leftPictureLabel.label', 'attr' => ['placeholder' => 'widget_picturecomparator.leftPictureLabel.default']])->add('rightPicture', 'media', ['label' => 'widget_picturecomparator.form.rightPicture.label'])->add('rightPictureLabel', null, ['label' => 'widget_picturecomparator.form.rightPictureLabel.label', 'attr' => ['placeholder' => 'widget_picturecomparator.rightPictureLabel.default']])->add('initialOffset', 'integer', ['label' => 'widget_picturecomparator.form.initialOffset.label', 'attr' => ['min' => '0', 'max' => '100']])->add('orientation', 'choice', ['label' => 'widget_picturecomparator.form.orientation.label', 'choices' => ['horizontal' => 'widget_picturecomparator.form.orientation.choice.horizontal', 'vertical' => 'widget_picturecomparator.form.orientation.choice.vertical']]);
     parent::buildForm($builder, $options);
 }
 /**
  * define form fields.
  *
  * @param FormBuilderInterface $builder
  *
  * @param array $options
  */
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     $builder->add('subject', null, ['label' => 'widget_simplecontactform.form.subject.label'])->add('recipientName', null, ['label' => 'widget_simplecontactform.form.recipientName.label'])->add('recipientEmail', null, ['label' => 'widget_simplecontactform.form.recipientEmail.label'])->add('senderEmail', null, ['label' => 'widget_simplecontactform.form.senderEmail.label']);
     parent::buildForm($builder, $options);
 }
 /**
  * define form fields
  * @param FormBuilderInterface $builder
  * @param array $options
  */
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     $builder->add('options_size', ChoiceType::class, array('property_path' => "options[size]", 'choices' => $builder->getData()->getSizesAvailable(), 'label' => 'widget_aggregaterating.form.options.size.label'))->add('message', ChoiceType::class, array('choices' => $builder->getData()->getMessagesAvailable(), 'label' => 'widget_aggregaterating.form.message.label'));
     parent::buildForm($builder, $options);
 }
 /**
  * define form fields.
  *
  * @param FormBuilderInterface $builder
  *
  * @param array $options
  */
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     $builder->add('latitude', null, ['label' => 'widget_gmap.form.latitude.label'])->add('longitude', null, ['label' => 'widget_gmap.form.longitude.label'])->add('hideMarker', null, ['label' => 'widget_gmap.form.hideMarker.label', 'required' => false])->add('geolocation', null, ['label' => 'widget_gmap.form.geolocation.label'])->add('searchBox', null, ['label' => 'widget_gmap.form.searchBox.label'])->add('title', null, ['label' => 'widget_gmap.form.title.label', 'required' => false])->add('kmlFile', null, ['label' => 'widget_gmap.form.kmlFile.label', 'required' => false])->add('zoom', null, ['label' => 'widget_gmap.form.zoom.label']);
     parent::buildForm($builder, $options);
 }
 /**
  * define form fields.
  *
  * @param FormBuilderInterface $builder
  *
  * @param array $options
  */
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     parent::buildForm($builder, $options);
     //add the mode to the form
     $builder->add('emitter', null, ['label' => 'victoire.widget_search.form.emitter.label', 'attr' => ['data-refreshOnChange' => 'true']])->add('receiver', null, ['label' => 'victoire.widget_search.form.receiver.label', 'attr' => ['data-refreshOnChange' => 'true']])->add('resultsPage', null, ['label' => 'victoire.widget_search.form.resultsPage.label', 'empty_value' => true]);
 }
 /**
  * define form fields
  * @param FormBuilderInterface $builder
  * @param array $options
  */
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     $builder->add('content', null, array('label' => 'widget_html.form.content.label'));
     parent::buildForm($builder, $options);
 }
 /**
  * define form fields
  * @param FormBuilderInterface $builder
  * @param array                $options
  */
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     $builder->add('name', null, array('label' => 'menu.form.name.label', 'required' => true, 'vic_help_label_tooltip' => array('menu.form.name.help_label_tooltip')))->add('items', 'collection', array('property_path' => 'children', 'type' => 'victoire_form_menu', 'required' => false, 'allow_add' => true, 'allow_delete' => true, 'by_reference' => false, 'prototype' => true, 'options' => array('namespace' => null, 'businessEntityId' => null, 'mode' => "static")));
     parent::buildForm($builder, $options);
 }