Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

エンティティ/フォーム拡張の自動出力タグを埋め込み #3242

Merged
merged 14 commits into from
Jul 13, 2018

Conversation

chihiro-adachi
Copy link
Contributor

@chihiro-adachi chihiro-adachi commented Jun 29, 2018

概要(Overview・Refs Issue)

  • 3.0の出力タグを削除し、自動出力タグを各画面に埋めています

管理画面

管理画面では、以下の画面で出力できます。

  • 商品管理
    • 商品マスター
    • 商品登録/商品規格登録
    • カテゴリ管理
  • 受注管理
    • 受注マスター
    • 受注登録
  • 会員管理
    • 会員マスター
    • 会員登録
  • コンテンツ管理
    • レイアウト管理
    • ページ管理
    • ブロック管理
  • 設定 > 基本情報
    • ショップマスター
    • 支払い方法設定
    • 配送方法設定
    • メール設定
  • 設定 > システム設定
    • メンバー管理

フロント画面

フロント画面では、以下の画面で出力できます。

  • 会員登録
  • お問い合わせ
  • マイページ
    • 会員情報編集
    • お届け先編集
  • 購入フロー
    • お届け先編集

実装に関する補足(Appendix)

エンティティ/フォーム拡張は以下のようにして利用できます。

@FormAppendアノテーションを利用する

    /**
     * @ORM\Column(name="company_name_vn", type="string", length=255, nullable=true)
     * @Assert\NotBlank(message="入力してくださいね!!!")
     * @Eccube\FormAppend(
     *     auto_render=true,
     *     form_theme="Form/company_name_vn.twig",
     *     type="\Symfony\Component\Form\Extension\Core\Type\TextareaType",
     *     options={
     *          "required": true,
     *          "label": "会社名(VN)"
     *     })
     */
    public $company_name_vn;

FormTypeのオプションを利用する

            ->add('company_name_vn', TextType::class, [
                'eccube_form_options' => [
                    'auto_render' => true,
                ]
            ])

テスト(Test)

  • Travis-CIにパスすることを確認

相談(Discussion)

  • 相談したいことや意見を求めたいこと

@okazy okazy merged commit 3e3d2bf into EC-CUBE:experimental/sf Jul 13, 2018
@chihiro-adachi chihiro-adachi deleted the improve/form-render branch July 31, 2018 04:01
@chihiro-adachi chihiro-adachi added document Improvements or additions to documentation and removed Status: needs-review labels Aug 9, 2018
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
document Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants