定制 mateuszbieniek/ezplatform-form-builder-multi-step-forms 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

mateuszbieniek/ezplatform-form-builder-multi-step-forms

Composer 安装命令:

composer require mateuszbieniek/ezplatform-form-builder-multi-step-forms

包简介

Adds feature to create multi-step forms in eZ Platform 2.5 Form Builder

README 文档

README

Description

The bundle provides a "step" field for the Form Builder in eZ Platform EE which makes Form "Multi-Step".

Usage

This bundle provides a default (and very basic) template that uses Bootstrap 4 to create a carousel which is used for step transitions, but you can use any solution you prefer. To do so, you will have to override the default template (EzPlatformFormBuilderMultiStepFormsBundle::form_steps.html.twig).

If Step Field is not the very first field used in the Form, fields before first Step Field will be rendered below the carousel (in the default template). If there is no Step Field inside Form it will be rendered normally. Step Field has couple of attributes:

step_class - the default template will add this CSS class to the step <div> tag.

next_label - if this field is not empty, the default template will render the "next step" button with the defined label.

back_label - if this field is not empty, the default template will render the "previous step" button with the defined label.

custom_template - if this field is not empty, the default template will use this custom twig file for this step template ({% include step.step_field.vars.attr["custom_template"] with { 'step': step } %})

It is up to you to add any additional features in javascript (for example: disable "next" button, until all fields in steps are filled).

Installation

1. Enable EzPlatformFormBuilderMultiStepFormsBundle

Edit app/AppKernel.php, and add

new MateuszBieniek\EzPlatformFormBuilderMultiStepFormsBundle\EzPlatformFormBuilderMultiStepFormsBundle(),

at the end of the $bundles array.

2. Install mateuszbieniek/ezplatform-form-builder-multi-step-forms

composer require mateuszbieniek/ezplatform-form-builder-multi-step-forms

统计信息

  • 总下载量: 9
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-12-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固