/** * * {@inheritdoc} * */ public function buildForm(FormBuilderInterface $builder, array $options) { parent::buildForm($builder, $options); $builder->add('body', TextareaType::class, ['label' => 'The Elasticsearch body query [JSON Twig]', 'attr' => ['rows' => 10]])->add('size', IntegerType::class, ['label' => 'Limit the result to the x first results'])->add('template', TextareaType::class, ['label' => 'The Twig template used to display each keywords', 'attr' => ['rows' => 10]]); }
/** * * {@inheritdoc} * */ public function buildForm(FormBuilderInterface $builder, array $options) { parent::buildForm($builder, $options); $builder->add('aggsQuery', TextareaType::class, ['label' => 'The aggregations Elasticsearch query [Twig]'])->add('template', TextareaType::class, ['label' => 'The Twig template used to display each keywords'])->add('pathToBuckets', TextType::class, ['label' => 'The twig path to the buckets array']); }
/** * * {@inheritdoc} * */ public function buildForm(FormBuilderInterface $builder, array $options) { parent::buildForm($builder, $options); $builder->add('dateRangeField', TextType::class, [])->add('timeFormat', TextType::class, ['attr' => ['placeholder' => 'i.e. H(:mm)']])->add('locale', TextType::class, ['attr' => ['placeholder' => 'i.e. fr']])->add('firstDay', IntegerType::class, ['attr' => ['placeholder' => 'Sunday=0, Monday=1, Tuesday=2, etc.']])->add('weekends', CheckboxType::class, [])->add('slotDuration', TextType::class, ['attr' => ['placeholder' => 'i.e. 00:30:00']]); }
/** * * {@inheritdoc} * */ public function buildForm(FormBuilderInterface $builder, array $options) { parent::buildForm($builder, $options); $builder->add('criteriaMode', ChoiceType::class, ['label' => 'Criteria mode', 'choices' => ['The records of this content type are the criterion of another content type' => 'another', 'The criterion of this content type are specifed in a internal collection' => 'internal'], 'expanded' => true])->add('targetField', TextType::class, ['label' => 'The target field of the referenced content type (another content type mode)'])->add('categoryFieldPath', TextType::class, [])->add('criteriaField', TextType::class, ['label' => 'The collection field containing the list of criteria (internal collection mode)'])->add('criteriaFieldPaths', TextareaType::class, ['attr' => ['rows' => 6]]); }