shopsys/form-types-bundle 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

shopsys/form-types-bundle

最新稳定版本:v18.0.0

Composer 安装命令:

composer require shopsys/form-types-bundle

包简介

Shopsys Platform custom Symfony form types

README 文档

README

Downloads

Symfony bundle adding form types for usage in Shopsys Platform, its components and plugins.

This repository is maintained by shopsys/shopsys monorepo, information about changes is in its CHANGELOG file.

Installation

The plugin is a Symfony bundle and is installed in the same way:

Download

First, you download the package using Composer:

composer require shopsys/form-types

How to use a custom form type

The form types in this package are regular Symfony form types. See Symfony Forms Documentation for detailed explanation.

Contents

MultidomainType

Compound type that renders one form of given type for each domain.

It can be configured via the following options:

  • entry_type - The type of the inner form. Defaults to TextType::class.
  • entry_options - The options of the inner forms. Defaults to [].
  • options_by_domain_id - The options of the inner forms based on the domain ID. Provide arrays indexed by the domain ID, values are merged with the entry_options. Defaults to [].

The data of the inner forms are returned as an array indexed by the domain ID.

MultidomainType usage example

YesNoType

Natural looking choice type for boolean value inputs.

It has no notable options.

A boolean value is accepted/returned as data. A null value can be accepted/returned when no radio button is checked.

YesNoType usage example

Contributing

Thank you for your contributions to Shopsys Form Types Bundle package. Together we are making Shopsys Platform better.

This repository is READ-ONLY. If you want to report issues and/or send pull requests, please use the main Shopsys repository.

Please check our Contribution Guide before contributing.

Support

What to do when you are in troubles or need some help? The best way is to join our Slack.

If you want to report issues, please use the main Shopsys repository.

统计信息

  • 总下载量: 228.03k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 1
  • 依赖项目数: 20
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 7
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-08-17