sfJQueryUIPlugin
1.0.0stable
for sf 1.4sf 1.3sf 1.2 MIT
sfJQueryUIPlugin
This plugin makes use of jQuery UI library.
Currently available is only one widget, sfWidgetFormDateJQueryUI which uses jQuery DatePicker to choose date. Widget displays one input tag (not three seperated input tags for year, month and day like in sfFormExtraPlugin).
Culture sensitive.
Try out demonstration
Developers
| Name |
Status |
Email |
Artur Rozek |
lead |
lp.ten.traofni <<ta>> rutra
|
License
Copyright (c) 2009 Artur Rozek - artur(at)infoart.net.pl
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Releases for sf 1.4
| Version |
License |
API |
Released |
|
1.1.0stable
|
MIT |
1.1.0stable
|
02/01/2010 |
|
1.0.1stable
|
MIT |
1.0.1stable
|
20/07/2009 |
|
1.0.0stable
|
MIT |
1.0.0stable
|
17/07/2009 |
Releases for sf 1.3
| Version |
License |
API |
Released |
|
1.1.0stable
|
MIT |
1.1.0stable
|
02/01/2010 |
|
1.0.1stable
|
MIT |
1.0.1stable
|
20/07/2009 |
|
1.0.0stable
|
MIT |
1.0.0stable
|
17/07/2009 |
Releases for sf 1.2
| Version |
License |
API |
Released |
|
1.1.0stable
|
MIT |
1.1.0stable
|
02/01/2010 |
|
1.0.1stable
|
MIT |
1.0.1stable
|
20/07/2009 |
|
1.0.0stable
|
MIT |
1.0.0stable
|
17/07/2009 |
Changelog for release 1.0.0 - 17/07/2009
Other releases
Release 1.1.0 - 02/01/2010
- improved usability
- fixed bug when locale was set to en
- added gb (Great Britain) locale
- Symfony 1.3/1.4 ready
Release 1.0.1 - 20/07/2009
Pear package and docs bugs fixed.
Release 1.0.0 - 17/07/2009
sfJQueryUIPlugin
Description
This plugin makes use of jQuery UI library.
Currently available is only one widget, sfWidgetFormDateJQueryUI which uses jQuery DatePicker to choose date. Widget displays one input tag (not three seperated input tags for year, month and day like in sfFormExtraPlugin).
This plugin uses awesome jQuery library - so its not compatible with sfProtoculousPlugin (which has to be disabled).
Depedencies
This Plugin requires JqueryReloadedPlugin or jquery library itself.
Installation
$ symfony plugin:install sfJQueryUIPlugin
$ symfony cache:clear
sfWidgetFormDateJQueryUI Usage
In your form class:
$this->widgetSchema['my_date']= new sfWidgetFormDateJQueryUI(array("change_month" => true, "change_year" => true)),
sfWidgetFormDateJQueryUI Customization
Yuo can configure Widget with following options:
- culture : configure culture for the widget, defaults to sfContext::getInstance()->getUser()->getCulture()
- change_month : if date chooser attached to widget has month dropdown, defaults to false
- change_year : if date chooser attached to widget has year dropdown, defaults to false
- number_of_months : number of months visible in date chooser, defaults to 1
- show_button_panel : if date chooser shows panel with 'today' and 'done' buttons, defaults to false
- theme : css theme for jquery ui interface, defaults to '/sfJQueryUIPlugin/css/ui-lightness/jquery-ui.css'
Notes
Widget is simple text input tag, date chooser appears after input is focused/clicked. User can still input date by hand. I recommend to use date validator.
When using widget, do not forget to use css and javascript in your form template:
<?php include_stylesheets_for_form($your_form) ?>
<?php include_javascripts_for_form($your_form) ?>