2017 © Pedro Peláez
 

symfony-bundle form-bundle

Various Form improvements

image

elao/form-bundle

Various Form improvements

  • Monday, May 30, 2016
  • by Elao
  • Repository
  • 22 Watchers
  • 6 Stars
  • 14,525 Installations
  • PHP
  • 0 Dependents
  • 2 Suggesters
  • 0 Forks
  • 0 Open issues
  • 17 Versions
  • 9 % Grown

The README.md

ElaoFormBundle

Best served with Elao/form.js!, (*1)

Tools & enhancements for Symfony 2 forms, (*2)

Installation:

Add ElaoFormBundle to your composer.json:, (*3)

``` bash $ composer require "elao/form-bundle":"~2.1", (*4)


Enable the bundle in the kernel: ``` php <?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Elao\Bundle\FormBundle\ElaoFormBundle(), ); }

Usage:

Use the provided form template, globally:, (*5)

``` yaml, (*6)

Twig Configuration

twig: form_themes: - "@ElaoForm/Form/form_elao_layout.html.twig", (*7)


Or on a specific form: ``` twig {% form_theme form '@ElaoForm/Form/form_elao_layout.html.twig' %}

Features:

Collections:

Provide support for collection:, (*8)

$('[data-collection]').collection();

Note: For more details, see Elao/form.js collection documentation., (*9)

Help:

Provide an help option that automatically adds an help block to the field. Use as below:, (*10)

$builder->add('email', EmailType::class, array('help' => "A valid email address"));

Note: The help string is gonna be translated by default just like the label of the field., (*11)

Buttons:

Provide sortcut for adding submit and reset buttons: All form have now an optional option "submit" and "reset", setting it to true adds a default submit/reset button, (*12)

$form = $this->createForm(PostType::class, $post, array('submit' => true, 'reset' => true));

The Versions

30/05 2016

dev-master

9999999-dev https://github.com/Elao/ElaoFormBundle

Various Form improvements

  Sources   Download

MIT

The Requires

 

collection form javascript elao

30/05 2016

v2.1

2.1.0.0 https://github.com/Elao/ElaoFormBundle

Various Form improvements

  Sources   Download

MIT

The Requires

 

collection form javascript elao

23/02 2016

v2.0.2

2.0.2.0 https://github.com/Elao/ElaoFormBundle

Various Form improvements

  Sources   Download

MIT

The Requires

 

collection form javascript elao

09/02 2016

v2.0.1

2.0.1.0 https://github.com/Elao/ElaoFormBundle

Various Form improvements

  Sources   Download

MIT

The Requires

 

collection form javascript elao

11/12 2015

v2.0.0

2.0.0.0 https://github.com/Elao/ElaoFormBundle

Various Form improvements

  Sources   Download

MIT

The Requires

 

collection form javascript elao

11/12 2015

0.2.x-dev

0.2.9999999.9999999-dev https://github.com/Elao/ElaoFormBundle

Various Form improvements

  Sources   Download

MIT

The Requires

 

collection form javascript elao

11/12 2015

0.1.x-dev

0.1.9999999.9999999-dev https://github.com/Elao/ElaoFormBundle

Various Form improvements

  Sources   Download

MIT

The Requires

 

collection form javascript elao

11/12 2015

1.0.x-dev

1.0.9999999.9999999-dev https://github.com/Elao/ElaoFormBundle

Various Form improvements

  Sources   Download

MIT

The Requires

 

collection form javascript elao

07/10 2015

v1.0.2

1.0.2.0 https://github.com/Elao/ElaoFormBundle

Various Form improvements

  Sources   Download

MIT

The Requires

 

collection form javascript elao

24/07 2015

v1.0.1

1.0.1.0 https://github.com/Elao/ElaoFormBundle

Various Form improvements

  Sources   Download

MIT

The Requires

 

collection form javascript elao

23/07 2015

v1.0.0

1.0.0.0 https://github.com/Elao/ElaoFormBundle

Various Form improvements

  Sources   Download

MIT

The Requires

 

collection form javascript elao

23/07 2015

0.2.2

0.2.2.0 https://github.com/Elao/ElaoFormBundle

Various Form improvements

  Sources   Download

MIT

The Requires

 

collection form javascript elao

19/01 2015

v0.1.2

0.1.2.0 https://github.com/Elao/ElaoFormBundle

Various Form improvements

  Sources   Download

MIT

The Requires

 

collection form javascript elao

15/01 2015

v0.2.1

0.2.1.0 https://github.com/Elao/ElaoFormBundle

Various Form improvements

  Sources   Download

MIT

The Requires

 

collection form javascript elao

04/12 2014

v0.2.0

0.2.0.0 https://github.com/Elao/ElaoFormBundle

Various Form improvements

  Sources   Download

MIT

The Requires

 

collection form javascript elao

04/12 2014

v0.1.1

0.1.1.0 https://github.com/Elao/ElaoFormBundle

Various Form improvements

  Sources   Download

MIT

The Requires

 

collection form javascript elao

04/04 2014

0.1.0

0.1.0.0 https://github.com/Elao/ElaoFormBundle

Various Form improvements

  Sources   Download

MIT

The Requires

 

collection form javascript elao