public static getVariantSelectionMethodLabels ( ) |
/** * {@inheritdoc} */ public function buildForm(FormBuilderInterface $builder, array $options) { parent::buildForm($builder, $options); $builder->add('translations', 'a2lix_translationsForms', array('form_type' => 'sylius_product_translation', 'label' => 'sylius.form.product.translations'))->add('taxCategory', 'sylius_tax_category_choice', array('required' => false, 'empty_value' => '---', 'label' => 'sylius.form.product.tax_category'))->add('shippingCategory', 'sylius_shipping_category_choice', array('required' => false, 'empty_value' => '---', 'label' => 'sylius.form.product.shipping_category'))->add('taxons', 'sylius_taxon_selection')->add('variantSelectionMethod', 'choice', array('label' => 'sylius.form.product.variant_selection_method', 'choices' => Product::getVariantSelectionMethodLabels()))->add('channels', 'sylius_channel_choice', array('multiple' => true, 'expanded' => true, 'label' => 'sylius.form.product.channels'))->add('restrictedZone', 'sylius_zone_choice', array('empty_value' => '---', 'label' => 'sylius.form.product.restricted_zone')); }
/** * {@inheritdoc} */ public function buildForm(FormBuilderInterface $builder, array $options) { parent::buildForm($builder, $options); $builder->add('channels', 'sylius_channel_choice', ['multiple' => true, 'expanded' => true, 'label' => 'sylius.form.product.channels'])->add('mainTaxon', 'sylius_taxon_to_hidden_identifier')->add('taxons', 'sylius_taxon_choice', ['label' => 'sylius.form.product.taxons', 'multiple' => true])->add('variantSelectionMethod', 'choice', ['label' => 'sylius.form.product.variant_selection_method', 'choices' => Product::getVariantSelectionMethodLabels()])->add('images', 'collection', ['type' => 'sylius_product_image', 'allow_add' => true, 'allow_delete' => true, 'by_reference' => false, 'label' => 'sylius.form.product.images']); }
/** * {@inheritdoc} */ public function buildForm(FormBuilderInterface $builder, array $options) { parent::buildForm($builder, $options); $builder->add('translations', 'sylius_translations', ['type' => 'sylius_product_translation', 'label' => 'sylius.form.product.translations'])->add('shippingCategory', 'sylius_shipping_category_choice', ['required' => false, 'empty_value' => '---', 'label' => 'sylius.form.product.shipping_category'])->add('taxons', 'sylius_taxon_choice', ['label' => 'sylius.form.product.taxons', 'multiple' => true, 'attr' => ['style' => 'height: 30%']])->add('variantSelectionMethod', 'choice', ['label' => 'sylius.form.product.variant_selection_method', 'choices' => Product::getVariantSelectionMethodLabels()])->add('channels', 'sylius_channel_choice', ['multiple' => true, 'expanded' => true, 'label' => 'sylius.form.product.channels'])->add('mainTaxon', 'sylius_taxon_choice', ['label' => 'sylius.form.product.main_taxon']); }
/** * {@inheritdoc} */ public function buildForm(FormBuilderInterface $builder, array $options) { $builder->add('channels', ChannelChoiceType::class, ['multiple' => true, 'expanded' => true, 'label' => 'sylius.form.product.channels'])->add('mainTaxon', TaxonChoiceType::class)->add('productTaxons', ProductTaxonChoiceType::class, ['label' => 'sylius.form.product.taxons', 'multiple' => true])->add('variantSelectionMethod', ChoiceType::class, ['choices' => array_flip(Product::getVariantSelectionMethodLabels()), 'label' => 'sylius.form.product.variant_selection_method'])->add('images', CollectionType::class, ['entry_type' => ProductImageType::class, 'allow_add' => true, 'allow_delete' => true, 'by_reference' => false, 'label' => 'sylius.form.product.images']); }
/** * {@inheritdoc} */ public function buildForm(FormBuilderInterface $builder, array $options) { parent::buildForm($builder, $options); $builder->add('shortDescription', 'textarea', array('required' => false, 'label' => 'sylius.form.product.short_description'))->add('taxCategory', 'sylius_tax_category_choice', array('required' => false, 'empty_value' => '---', 'label' => 'sylius.form.product.tax_category'))->add('shippingCategory', 'sylius_shipping_category_choice', array('required' => false, 'empty_value' => '---', 'label' => 'sylius.form.product.shipping_category'))->add('taxons', 'sylius_taxon_selection')->add('variantSelectionMethod', 'choice', array('label' => 'sylius.form.product.variant_selection_method', 'choices' => Product::getVariantSelectionMethodLabels()))->add('restrictedZone', 'sylius_zone_choice', array('empty_value' => '---', 'label' => 'sylius.form.product.restricted_zone')); }