PATH:
home
/
lab2454c
/
vaultchip.com
/
platform
/
plugins
/
ecommerce
/
src
/
Forms
<?php namespace Botble\Ecommerce\Forms; use Botble\Base\Enums\BaseStatusEnum; use Botble\Base\Forms\FormAbstract; use Botble\Ecommerce\Http\Requests\ProductLabelRequest; use Botble\Ecommerce\Models\ProductLabel; class ProductLabelForm extends FormAbstract { /** * {@inheritDoc} */ public function buildForm() { $this ->setupModel(new ProductLabel) ->setValidatorClass(ProductLabelRequest::class) ->withCustomFields() ->add('name', 'text', [ 'label' => trans('core/base::forms.name'), 'label_attr' => ['class' => 'control-label required'], 'attr' => [ 'placeholder' => trans('core/base::forms.name_placeholder'), 'data-counter' => 120, ], ]) ->add('color', 'customColor', [ 'label' => trans('plugins/ecommerce::product-label.color'), 'label_attr' => ['class' => 'control-label'], 'attr' => [ 'placeholder' => trans('plugins/ecommerce::product-label.color_placeholder'), ], ]) ->add('status', 'customSelect', [ 'label' => trans('core/base::tables.status'), 'label_attr' => ['class' => 'control-label required'], 'attr' => [ 'class' => 'form-control select-full', ], 'choices' => BaseStatusEnum::labels(), ]) ->setBreakFieldPoint('status'); } }
[-] ProductForm.php
[edit]
[-] ProductTagForm.php
[edit]
[+]
..
[-] TaxForm.php
[edit]
[-] ProductCategoryForm.php
[edit]
[-] BrandForm.php
[edit]
[-] ProductAttributeSetForm.php
[edit]
[-] CustomerForm.php
[edit]
[-] ProductLabelForm.php
[edit]
[-] FlashSaleForm.php
[edit]
[-] AddShippingRegionForm.php
[edit]
[-] ProductCollectionForm.php
[edit]
[+]
Fields