2017 © Pedro Peláez
 

library sexy-field-form

SexyField Form. Generate symfony forms based on section configuration.

image

tardigrades/sexy-field-form

SexyField Form. Generate symfony forms based on section configuration.

  • Monday, July 2, 2018
  • by dion.snoeijen
  • Repository
  • 2 Watchers
  • 0 Stars
  • 684 Installations
  • PHP
  • 2 Dependents
  • 1 Suggesters
  • 2 Forks
  • 0 Open issues
  • 1 Versions
  • 42 % Grown

The README.md

Coverage Status, (*1)

Build Status, (*2)

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., (*3)

Rendering an 'edit' form can be done as follows:, (*4)

{% set form = sectionForm(section, {slug:formSlug}) %}

Omit the slug parameter for a create form., (*5)

After that, you can refer to the (Symfony form documentation)[http://symfony.com/doc/current/forms.html], (*6)

{{ 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) }}

The Versions