Releases for sf 1.4
| Version |
License |
API |
Released |
|
1.0.0stable
|
MIT license |
1.0.0stable
|
21/05/2010 |
Changelog for release 1.0.0 - 21/05/2010
- Initial widget for choices
Other releases
Release 1.0.0 - 21/05/2010
- Initial widget for choices
mpWidgetFormChoiceRatingPlugin
The mpWidgetFormChoiceRatingPlugin is a widget created to show radio butons of rating like stars.
This collection starts with only a widget and have external dependencies of jquery.
Installation
Install the plugin
$ symfony plugin:install mpWidgetFormChoiceRatingPlugin
Clear the cache
$ symfony cache:clear
$ symfony plugin:publish-assets
Use the widget overriting your form widget generated by doctrine or your custom form
$options = array(0 => 'Não sei', 1 => 'Péssimo', 2 => 'Aceitável', 3 => 'Mediano', 4 => 'Muito bom', 5 => 'Excelente');
$widgets = $this->getWidgetSchema();
$widgets['rating_comfort'] = new mpWidgetFormChoiceRating( array('choices' => $options ) );
$widgets['rating_room'] = new mpWidgetFormChoiceRating( array('choices' => $options ) );
$widgets['rating_service'] = new mpWidgetFormChoiceRating( array('choices' => $options ) );
Documentation
All classes have full API and usage documentation. The best way to learn each widget or validator
is to read the API.
Widgets
- mpWidgetFormChoiceRating: Change the default radio options by starts using javascript (extends sfWidgetFormChoice)
As no third party libraries is bundled in the plugin, you need to install and load the required
dependencies like JQuery and JQuery UI.
It's based on Star Rating widget ( http://plugins.jquery.com/project/Star_Rating_widget )