Permalink
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (21 sloc) 771 Bytes

JQueryRating Field (view demo)

Star rating

Installation:

You need to download the resources manually from here. Add the CSS and JS in to your template, and make sure the image paths are correct.

Default Usage:

<?php
// ...
public function buildForm(FormBuilder $builder, array $options)
{
    $builder
        // ...
        ->add('rating', 'genemu_jqueryrating')
        ->add('readonly_rating', 'genemu_jqueryrating', array(
            'configs' => array(
                'readOnly' => true
            )
        ))
}