sfJQueryUIPlugin: No Picker for new records

Posted by Prasad on Stack Overflow See other posts from Stack Overflow or by Prasad
Published on 2010-04-21T15:56:01Z Indexed on 2010/04/22 4:23 UTC
Read the original article Hit count: 386

Everyday is a new day with Symfony, but I'm loving it! This morning I installed the sfJQueryUIPlugin. It has very little dependencies & accepts themeRoller styles. However, it has 2 issues:

[Feature_Request] There is no way to specify the year range. By default, it shows a 20 year range around the year in the field value. eg. if field value is 1993-01-20, the range will be 1983 to 2003. ??? Has anyone found a way out???

The DatePicker does not appear when the field is empty, Thus it does not show up during new record creation. To solve this, I tried setting up the default value in the date input field (which now appears as a text input) using $this->setDefault('date_of_birth',date('Y-m-d')); ??? Is anybody facing this problem of picker now available during new record creation ??? ??? Also is it the right way to set default value ???

Thanks in advance.

© Stack Overflow or respective owner

Related posts about symfony

Related posts about symfony-1.4