Eccube\Form\Type\Admin\ShopMasterType::buildForm PHP Method

buildForm() public method

public buildForm ( Symfony\Component\Form\FormBuilderInterface $builder, array $options )
$builder Symfony\Component\Form\FormBuilderInterface
$options array
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $config = $this->config;
        $builder->add('company_name', 'text', array('label' => '会社名', 'required' => false, 'constraints' => array(new Assert\Length(array('max' => $config['stext_len'])))))->add('shop_name', 'text', array('label' => '店名', 'required' => true, 'constraints' => array(new Assert\NotBlank(), new Assert\Length(array('max' => $config['stext_len'])))))->add('shop_name_eng', 'text', array('label' => '店名(英語表記)', 'required' => false, 'constraints' => array(new Assert\Length(array('max' => $config['mtext_len'])), new Assert\Regex(array('pattern' => '/^[[:graph:][:space:]]+$/i')))))->add('zip', 'zip', array('required' => false))->add('address', 'address', array('required' => false))->add('tel', 'tel', array('required' => false))->add('fax', 'tel', array('required' => false))->add('business_hour', 'text', array('label' => '店舗営業時間', 'required' => false, 'constraints' => array(new Assert\Length(array('max' => $config['stext_len'])))))->add('email01', 'email', array('label' => '送信元メールアドレス(From)', 'required' => false, 'constraints' => array(new Assert\NotBlank(), new Assert\Email(array('strict' => true)))))->add('email02', 'email', array('label' => '問い合わせ受付メールアドレス(From, ReplyTo)', 'required' => false, 'constraints' => array(new Assert\NotBlank(), new Assert\Email(array('strict' => true)))))->add('email03', 'email', array('label' => '返信受付メールアドレス(ReplyTo)', 'required' => false, 'constraints' => array(new Assert\NotBlank(), new Assert\Email(array('strict' => true)))))->add('email04', 'email', array('label' => '送信エラー受付メールアドレス(ReturnPath)', 'required' => false, 'constraints' => array(new Assert\NotBlank(), new Assert\Email(array('strict' => true)))))->add('good_traded', 'textarea', array('label' => '取り扱い商品', 'required' => false, 'constraints' => array(new Assert\Length(array('max' => $config['lltext_len'])))))->add('message', 'textarea', array('label' => 'メッセージ', 'required' => false, 'constraints' => array(new Assert\Length(array('max' => $config['lltext_len'])))))->add('delivery_free_amount', 'money', array('label' => '送料無料条件(金額)', 'required' => false, 'currency' => 'JPY', 'precision' => 0, 'constraints' => array(new Assert\Length(array('max' => $config['price_len'])), new Assert\Regex(array('pattern' => "/^\\d+\$/u", 'message' => 'form.type.numeric.invalid')))))->add('delivery_free_quantity', 'integer', array('label' => '送料無料条件(数量)', 'required' => false, 'constraints' => array(new Assert\Regex(array('pattern' => "/^\\d+\$/u", 'message' => 'form.type.numeric.invalid')))))->add('option_product_delivery_fee', 'choice', array('label' => '商品ごとの送料設定を有効にする', 'choices' => array('0' => '無効', '1' => '有効'), 'expanded' => true, 'multiple' => false))->add('option_multiple_shipping', 'choice', array('label' => '複数配送を有効にする', 'choices' => array('0' => '無効', '1' => '有効'), 'expanded' => true, 'multiple' => false))->add('option_customer_activate', 'choice', array('label' => '仮会員を有効にする', 'choices' => array('0' => '無効', '1' => '有効'), 'expanded' => true, 'multiple' => false))->add('option_mypage_order_status_display', 'choice', array('label' => 'マイページに注文状況を表示する', 'choices' => array('0' => '無効', '1' => '有効'), 'expanded' => true, 'multiple' => false))->add('option_remember_me', 'choice', array('label' => '自動ログイン機能を有効にする', 'choices' => array('0' => '無効', '1' => '有効'), 'expanded' => true, 'multiple' => false))->add('option_favorite_product', 'choice', array('label' => 'お気に入り商品機能を利用する', 'choices' => array('0' => '無効', '1' => '有効'), 'expanded' => true, 'multiple' => false))->add('nostock_hidden', 'choice', array('label' => '在庫切れ商品を非表示にする', 'choices' => array('0' => '無効', '1' => '有効'), 'expanded' => true, 'multiple' => false))->add('latitude', 'number', array('label' => '緯度', 'required' => false, 'precision' => 6, 'constraints' => array(new Assert\Regex(array('pattern' => '/^-?([0-8]?[0-9]\\.?[0-9]{0,6}|90\\.?0{0,6})$/', 'message' => 'admin.shop.latitude.invalid')))))->add('longitude', 'number', array('label' => '経度', 'required' => false, 'precision' => 6, 'constraints' => array(new Assert\Regex(array('pattern' => '/^-?((1?[0-7]?|[0-9]?)[0-9]\\.?[0-9]{0,6}|180\\.?0{0,6})$/', 'message' => 'admin.shop.longitude.invalid')))));
        $builder->add($builder->create('company_kana', 'text', array('label' => '会社名(フリガナ)', 'required' => false, 'constraints' => array(new Assert\Regex(array('pattern' => "/^[ァ-ヶヲ-゚ー]+\$/u")), new Assert\Length(array('max' => $config['stext_len'])))))->addEventSubscriber(new \Eccube\EventListener\ConvertKanaListener('CV')));
        $builder->add($builder->create('shop_kana', 'text', array('label' => '店名(フリガナ)', 'required' => false, 'constraints' => array(new Assert\Length(array('max' => $config['stext_len'])), new Assert\Regex(array('pattern' => "/^[ァ-ヶヲ-゚ー]+\$/u")))))->addEventSubscriber(new \Eccube\EventListener\ConvertKanaListener('CV')));
    }