sonata-project/SonataAdminBundle — pull request #611 by JohnPoison (2012-03-05 16:24:31+00:00)
Title: added new datepicker type

Added new admin form type which uses jquery datepicker for date selection

configuration section:
sonata_admin:
form_types:
datepicker:
date_format: d.m.Y
locale: ru

date_format - php format for field value (default Y-m-d)
locale - datepicker locale (default en-GB)

use example:
protected function configureFormFields(FormMapper $formMapper)
{
$formMapper
->add('title')
->add('startDate', 'sonata_type_datepicker' )
;
}