tardigrades/sexy-field-form
Composer 安装命令:
composer require tardigrades/sexy-field-form
包简介
SexyField Form. Generate symfony forms based on section configuration.
README 文档
README
SectionField Form
This is part of the (sexy-field-bundle)[https://github.com/dionsnoeijen/sexy-field-bundle] for Symfony. It adds support for rendering out the forms for sections. It's also required by the sexy-field-api component.
Rendering an 'edit' form can be done as follows:
{% set form = sectionForm(section, {slug:formSlug}) %}
Omit the slug parameter for a create form.
After that, you can refer to the (Symfony form documentation)[http://symfony.com/doc/current/forms.html]
{{ form_start(form) }}
<div class="row">
<div class="col-md-12">
{{ form_errors(form) }}
</div>
</div>
<div class="row">
<div class="col-md-10">
{{ form_widget(form) }}
</div>
</div>
{{ form_end(form) }}
统计信息
- 总下载量: 2.81k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 2
- 推荐数: 1
其他信息
- 授权协议: MIT
- 更新时间: 2017-10-02