Friends,
I could not use extra jquery plugin for date js calendar. It was because, if
I have to select date of birth then, I need to go many years back click by
click.
The solution I used is already available in symfony's sf folder in web.
I did following similar to Noor M's solution
Step #1
If you want calendar at module level then put it in your
module/config/view.yml file as follow otherwise app/config/view.yml and
remove hashes
>>>>>>>>>>>>>>>>>>>>>>>>>>view.yml
default:
http_metas:
content-type: text/html
metas:
#title: bla bla
#description: bla bla
#keywords: bla bla, project
#language: en
#robots: index, follow
stylesheets: [main.css, /sf/calendar/skins/aqua/theme.css]
javascripts: [/sf/calendar/calendar.js,
/sf/calendar/lang/calendar-en.js, /sf/calendar/calendar-setup.js]
has_layout: on
layout: layout
#Step 2 in your base******Form.class.php file in setup function..... do
following
'date_of_birth' => new sfWidgetFormInput(array(),array('onfocus' =>
'Calendar.setup({trigger : "***MODuLENamE****_date_of_birth", inputField :
"***MODuLENamE****_date_of_birth"});')),
you can also do it via configue method.
How is it?
On Tue, Sep 8, 2009 at 11:44 AM, Noor Mustafa <[email protected]>wrote:
> look at calander screen shot. which will surely solve ur problem
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> More information and help , contact me.
>
>
>
>
>
>
>
>
>
>
>
>
>
> ------------------------------
> From: [email protected]
> Date: Mon, 7 Sep 2009 19:36:06 +0200
> Subject: [symfony-users] Re: calendar using new sfWidgetFormDate()
> To: [email protected]
>
> Hi,
> This widget has the same behaviors like the simple date widget. It
> replaces the input text by hidden input and changes the values by JS with
> JQuery lib.
>
> You don't need Doctrine plugin to use it, I think.
>
> Regards
> NairuS
>
> 2009/9/7 Abraham Montilla <[email protected]>
>
> is there any sfFormExtra plugin for doctrine? or do i have to make it
> "manually" likeNoor Mustafa showed us?
>
> 2009/9/7 NairuS <[email protected]>
>
> Hello
>
> 2009/9/7 José Nahuel Cuesta Luengo <[email protected]>
>
>
>
> -----BEGIN PGP SIGNED MESSAGE-----
>
>
>
> Hash: SHA1
>
> NairuS escribió:
> > Hello,
> >
> > Try this plug-in:
> >
> http://www.digitalbase.eu/blog/using-dbformextraplugin-for-datepicker-or-datetimepicker/
> >
> > Regards
> > NairuS
> >
> > 2009/9/7 krishan <[email protected] <mailto:[email protected]>>
> >
> >
> > Hi
> >
> > Does any one knows how to make javascript calendar available via [new
> > sfWidgetFormDate()] widget?
> > Did many search over web but could not find something useful :(
> >
> > Krishan.g
> >
> >
> >
> > >
>
> Haven't you tried sfFormExtraPlugin??
>
> http://www.symfony-project.org/plugins/sfFormExtraPlugin
>
> Yes, I use it for the double list.
> But the date picker is good but not complete, I think.
> There is not the time.
>
>
>
> - --
> José Nahuel Cuesta Luengo
> Desarrollo | CeSPI - UNLP
> <[email protected]>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iEYEARECAAYFAkqk9sgACgkQ2jTpOyePgAGWgwCePj2OOU4Sjan4N9oM20i8636n
> RPQAnjz4Lg1rtBGjPuK3B7y6LLXAllwr
> =Qji8
> -----END PGP SIGNATURE-----
>
>
>
>
>
>
>
>
> --
> Have a nice day.
> Abraham Montilla.
>
>
>
>
>
>
>
> ------------------------------
> With Windows Live, you can organize, edit, and share your
> photos.<http://www.microsoft.com/middleeast/windows/windowslive/products/photo-gallery-edit.aspx>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---