Datepicker in symfony with i18n
Some time ago we decided in Makoondi that would be better to have one of these jquery calendars where the user picks the date:
The first version was easy to implement with sfFormExtraPlugin , that implements sfWidgetFormJQueryDate.
You will need, apart from the plugin, some jquery files that you can download from the jquery-ui website:
and, in order to use the i18n, you will need the localized version of jpicker from this website. e. g. the file with translations to Spanish would be:
But be aware! you will need to change mentions to $.datepick to $datepicker in that file in order to get it working!
otherwise you will get a “
$.datepick is undefined” error :(