Exemplo n.º 1
0
 /**
  *
  * {@inheritdoc}
  *
  */
 public function buildOptionsForm(FormBuilderInterface $builder, array $options)
 {
     parent::buildOptionsForm($builder, $options);
     $optionsForm = $builder->get('options');
     // String specific mapping options
     $optionsForm->get('mappingOptions')->add('analyzer', AnalyzerPickerType::class);
 }
Exemplo n.º 2
0
 /**
  *
  * {@inheritdoc}
  *
  */
 public function buildOptionsForm(FormBuilderInterface $builder, array $options)
 {
     parent::buildOptionsForm($builder, $options);
     $optionsForm = $builder->get('options');
     // String specific mapping options
     $optionsForm->get('mappingOptions')->add('analyzer', AnalyzerPickerType::class);
     $optionsForm->get('displayOptions')->add('rows', IntegerType::class, ['required' => false]);
 }
Exemplo n.º 3
0
 /**
  *
  * {@inheritdoc}
  *
  */
 public function configureOptions(OptionsResolver $resolver)
 {
     /* set the default option value for this kind of compound field */
     parent::configureOptions($resolver);
     $resolver->setDefault('displayTemplate', NULL);
     $resolver->setDefault('json', false);
     $resolver->setDefault('valueTemplate', NULL);
 }
Exemplo n.º 4
0
 /**
  *
  * {@inheritdoc}
  *
  */
 public function buildOptionsForm(FormBuilderInterface $builder, array $options)
 {
     parent::buildOptionsForm($builder, $options);
     $optionsForm = $builder->get('options');
     // String specific display options
     $optionsForm->get('displayOptions')->add('encryption', ChoiceType::class, ['required' => false, 'choices' => ['sha1' => 'sha1', 'md5' => 'md5'], 'empty_data' => 'sha1']);
     // String specific mapping options
     $optionsForm->get('mappingOptions')->add('index', ChoiceType::class, ['required' => false, 'choices' => ['No' => 'no'], 'empty_data' => 'no']);
 }
Exemplo n.º 5
0
 /**
  *
  * {@inheritdoc}
  *
  */
 public function buildOptionsForm(FormBuilderInterface $builder, array $options)
 {
     parent::buildOptionsForm($builder, $options);
     $optionsForm = $builder->get('options');
     // String specific display options
     $optionsForm->get('displayOptions')->add('prefixIcon', IconPickerType::class, ['required' => false])->add('prefixText', IconTextType::class, ['required' => false, 'icon' => 'fa fa-hand-o-left'])->add('suffixIcon', IconPickerType::class, ['required' => false])->add('suffixText', IconTextType::class, ['required' => false, 'icon' => 'fa fa-hand-o-right']);
     // String specific mapping options
     $optionsForm->get('mappingOptions')->add('analyzer', AnalyzerPickerType::class);
 }
Exemplo n.º 6
0
 /**
  *
  * {@inheritdoc}
  *
  */
 public function buildOptionsForm(FormBuilderInterface $builder, array $options)
 {
     parent::buildOptionsForm($builder, $options);
     $optionsForm = $builder->get('options');
     // 		// String specific display options
     // 		$optionsForm->get ( 'displayOptions' )->add ( 'choices', TextareaType::class, [
     // 				'required' => false,
     // 		] )->add ( 'labels', TextareaType::class, [
     // 				'required' => false,
     // 		] );
     // 		// String specific mapping options
     // 		$optionsForm->get ( 'mappingOptions' )->add ( 'analyzer', AnalyzerPickerType::class);
 }
Exemplo n.º 7
0
 /**
  *
  * {@inheritdoc}
  *
  */
 public function buildOptionsForm(FormBuilderInterface $builder, array $options)
 {
     parent::buildOptionsForm($builder, $options);
     $optionsForm = $builder->get('options');
     // container aren't mapped in elasticsearch
     $optionsForm->remove('mappingOptions');
     // an optional icon can't be specified ritgh to the container label
     $optionsForm->get('displayOptions')->add('singularLabel', TextType::class, ['required' => false])->add('itemBootstrapClass', TextType::class, ['required' => false])->add('icon', IconPickerType::class, ['required' => false])->add('collapsible', CheckboxType::class, ['required' => false])->add('sortable', CheckboxType::class, ['required' => false]);
 }
Exemplo n.º 8
0
 /**
  *
  * {@inheritdoc}
  *
  */
 public function configureOptions(OptionsResolver $resolver)
 {
     /* set the default option value for this kind of compound field */
     parent::configureOptions($resolver);
     $resolver->setDefault('icon', null);
 }
Exemplo n.º 9
0
 /**
  *
  * {@inheritdoc}
  *
  */
 public function buildOptionsForm(FormBuilderInterface $builder, array $options)
 {
     parent::buildOptionsForm($builder, $options);
     $optionsForm = $builder->get('options');
     // String specific display options
     $optionsForm->get('mappingOptions')->add('format', TextType::class, ['required' => false, 'empty_data' => 'HH:mm:ss', 'attr' => ['placeholder' => 'i.e. HH:mm:ss']]);
     $optionsForm->get('displayOptions')->add('minuteStep', IntegerType::class, ['required' => false, 'empty_data' => 15]);
     $optionsForm->get('displayOptions')->add('showMeridian', CheckboxType::class, ['required' => false, 'label' => 'Show meridian (true: 12hr, false: 24hr)']);
     $optionsForm->get('displayOptions')->add('defaultTime', TextType::class, ['required' => false, 'label' => 'Default time (empty: current time, \'11:23\': specific time, \'false\': do not set a default time)']);
     $optionsForm->get('displayOptions')->add('showSeconds', CheckboxType::class, ['required' => false]);
     $optionsForm->get('displayOptions')->add('explicitMode', CheckboxType::class, ['required' => false]);
 }
Exemplo n.º 10
0
 /**
  *
  * {@inheritdoc}
  *
  */
 public function buildOptionsForm(FormBuilderInterface $builder, array $options)
 {
     parent::buildOptionsForm($builder, $options);
     $optionsForm = $builder->get('options');
     // container aren't mapped in elasticsearch
     $optionsForm->remove('mappingOptions');
     // an optional icon can't be specified ritgh to the container label
     $optionsForm->get('displayOptions')->add('icon', IconPickerType::class, ['required' => false]);
 }
Exemplo n.º 11
0
 /**
  *
  * {@inheritdoc}
  *
  */
 public function buildOptionsForm(FormBuilderInterface $builder, array $options)
 {
     parent::buildOptionsForm($builder, $options);
     $optionsForm = $builder->get('options');
     // tabs aren't mapped in elasticsearch
     $optionsForm->remove('mappingOptions');
 }
Exemplo n.º 12
0
 /**
  *
  * {@inheritdoc}
  *
  */
 public function buildOptionsForm(FormBuilderInterface $builder, array $options)
 {
     parent::buildOptionsForm($builder, $options);
     $optionsForm = $builder->get('options');
     // String specific display options
     $optionsForm->get('displayOptions')->add('multiple', CheckboxType::class, ['required' => false])->add('required', CheckboxType::class, ['required' => false])->add('dynamicLoading', CheckboxType::class, ['required' => false])->add('type', TextType::class, ['required' => false])->add('defaultValue', TextType::class, ['required' => false]);
 }
Exemplo n.º 13
0
 /**
  *
  * {@inheritdoc}
  *
  */
 public function buildOptionsForm(FormBuilderInterface $builder, array $options)
 {
     parent::buildOptionsForm($builder, $options);
     $optionsForm = $builder->get('options');
     // String specific display options
     $optionsForm->get('mappingOptions')->add('fromDateMachineName', TextType::class, ['required' => false])->add('toDateMachineName', TextType::class, ['required' => false])->add('nested', CheckboxType::class, ['required' => false]);
     $optionsForm->get('displayOptions')->add('locale', SubOptionsType::class, ['required' => false, 'label' => false]);
     $optionsForm->get('displayOptions')->get('locale')->add('format', TextType::class, ['required' => false, 'attr' => ['placeholder' => 'i.e. DD/MM/YYYY HH:mm']]);
     $optionsForm->get('displayOptions')->get('locale')->add('firstDay', IntegerType::class, ['required' => false]);
     $optionsForm->get('displayOptions')->add('icon', IconPickerType::class, ['required' => false]);
     $optionsForm->get('displayOptions')->add('showWeekNumbers', CheckboxType::class, ['required' => false]);
     $optionsForm->get('displayOptions')->add('timePicker', CheckboxType::class, ['required' => false]);
     $optionsForm->get('displayOptions')->add('timePicker24Hour', CheckboxType::class, ['required' => false]);
     $optionsForm->get('displayOptions')->add('timePickerIncrement', IntegerType::class, ['required' => false, 'empty_data' => 5, 'attr' => ['placeholder' => '5']]);
 }
Exemplo n.º 14
0
 /**
  *
  * {@inheritdoc}
  *
  */
 public function buildOptionsForm(FormBuilderInterface $builder, array $options)
 {
     parent::buildOptionsForm($builder, $options);
     $optionsForm = $builder->get('options');
     // String specific display options
     $optionsForm->get('mappingOptions')->add('format', TextType::class, ['required' => false, 'empty_data' => 'yyyy/MM/dd', 'attr' => ['placeholder' => 'i.e. yyyy/MM/dd']]);
     // String specific display options
     $optionsForm->get('displayOptions')->add('displayFormat', TextType::class, ['required' => false, 'empty_data' => 'dd/mm/yyyy', 'attr' => ['placeholder' => 'i.e. dd/mm/yyyy']]);
     $optionsForm->get('displayOptions')->add('weekStart', IntegerType::class, ['required' => false, 'empty_data' => 0, 'attr' => ['placeholder' => '0']]);
     $optionsForm->get('displayOptions')->add('todayHighlight', CheckboxType::class, ['required' => false]);
     $optionsForm->get('displayOptions')->add('multidate', CheckboxType::class, ['required' => false]);
     $optionsForm->get('displayOptions')->add('daysOfWeekDisabled', TextType::class, ['required' => false, 'attr' => ['placeholder' => 'i.e. 0,6']]);
     $optionsForm->get('displayOptions')->add('daysOfWeekHighlighted', TextType::class, ['required' => false, 'attr' => ['placeholder' => 'i.e. 0,6']]);
 }