2017 © Pedro Peláez
 

symfony-bundle form-bundle

A bundle which contains helper form types to aid our needs: "choice with disabled options", "jquery minicolors colorpicker".

image

wiakowe/form-bundle

A bundle which contains helper form types to aid our needs: "choice with disabled options", "jquery minicolors colorpicker".

  • Thursday, January 17, 2013
  • by Lumbendil
  • Repository
  • 0 Watchers
  • 1 Stars
  • 152 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Wiakowe Form Bundle

Set of form types which we have ended up needing., (*1)

Travis status: Build Status, (*2)

Choice with disabled options

The type choice_with_disabled_options works exactly like the choice type, except that it adds an additional option, disabled_choices, which allows you to show some options greyed out., (*3)

Example usage:, (*4)

$formBuilder->add(
    'field',
    'choice_with_disabled_options',
    array(1 => 'First', 2 => 'Second'),
    array(
        'disabled_choices' => array(2)
    )
);

This code will lead, aproximately, to the following HTML:, (*5)

<select>
    <option value="1">First</option>
    <option value="2" disabled="disabled">Second</option>
</select>

JQuery MiniColors

The JQuery Minicolors type allows adding a color picker to a form. The selected color will be stored as a 6 characters hex with a prepended #. For instance: #ff00ff., (*6)

Example usage:, (*7)

$formBuilder->add('field', 'jquery_minicolors');

For this plugin to work properly, it requires that the user has loaded the JQuery Minicolors library., (*8)

Next steps

  • Validate that choice_with_disabled_options doesn't receive a disabled choice.
  • Make choice_with_disabled_options work with the expanded template.

The Versions

17/01 2013

dev-master

9999999-dev

A bundle which contains helper form types to aid our needs: "choice with disabled options", "jquery minicolors colorpicker".

  Sources   Download

MIT

The Requires

 

by Aitor Suso
by Roger Llopart Pla

24/07 2012

1.1.0.2

1.1.0.2

A bundle which contains helper form types which to aid our needs. Right now it contains a type which allows us to disable single options within a select tag.

  Sources   Download

MIT

The Requires

 

by Aitor Suso
by Roger Llopart Pla

20/07 2012

1.1.0.1

1.1.0.1

A bundle which contains helper form types which to aid our needs. Right now it contains a type which allows us to disable single options within a select tag.

  Sources   Download

MIT

The Requires

 

by Aitor Suso
by Roger Llopart Pla

20/07 2012

1.0.0.x-dev

1.0.0.9999999-dev

A bundle which contains helper form types which to aid our needs. Right now it contains a type which allows us to disable single options within a select tag.

  Sources   Download

MIT

The Requires

 

by Aitor Suso
by Roger Llopart Pla

20/07 2012

1.1.0.0

1.1.0.0

A bundle which contains helper form types which to aid our needs. Right now it contains a type which allows us to disable single options within a select tag.

  Sources   Download

MIT

The Requires

 

by Aitor Suso
by Roger Llopart Pla

20/07 2012

1.0.0.0

1.0.0.0

A bundle which contains helper form types which to aid our needs. Right now it contains a type which allows us to disable single options within a select tag.

  Sources   Download

MIT

The Requires

 

by Aitor Suso
by Roger Llopart Pla