![]() |
|
sfDatePickerTimePlugin - 0.1.5Datepicker with a time selector |
|
![]() |
14
users
Sign-in
to change your status |
Hybrid jQuery datepiker and a time selector widget based on the sfWidgetFormDateTime widget. |
The sfDatePickerTimePlugin is a symfony plugin that provides a hybrid jQuery datepiker
and a time selector widget based on the classic sfWidgetFormDateTime widget.
This widget require jQuery and jQueryUI.
| Name | Status | |
|---|---|---|
|
|
lead | moc.liamg <<ta>> norrep.trebuh |
|
|
developer | moc.liamg <<ta>> izdoluta |
Copyright (c) 2011 Hubert Perron <hubert.perron@gmail.com>
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.
| Version | License | API | Released |
|---|---|---|---|
| 0.1.5alpha | MIT license | 0.1.0alpha | 16/06/2011 |
| 0.1.4alpha | MIT license | 0.1.0alpha | 23/05/2011 |
| 0.1.0alpha | MIT license | 0.1.0alpha | 02/03/2011 |
| Version | License | API | Released |
|---|---|---|---|
| 0.1.5alpha | MIT license | 0.1.0alpha | 16/06/2011 |
| 0.1.4alpha | MIT license | 0.1.0alpha | 23/05/2011 |
| 0.1.0alpha | MIT license | 0.1.0alpha | 02/03/2011 |
| Version | License | API | Released |
|---|---|---|---|
| 0.1.5alpha | MIT license | 0.1.0alpha | 16/06/2011 |
| 0.1.4alpha | MIT license | 0.1.0alpha | 23/05/2011 |
| 0.1.0alpha | MIT license | 0.1.0alpha | 02/03/2011 |
required: false and no data is send in process of validation without successArray
The sfDatePickerTimePlugin is a symfony plugin that provides a hybrid jQuery datepiker
and a time selector widget based on the classic sfWidgetFormDateTime widget.
This widget require jQuery and jQueryUI.
Install the plugin (via a package)
$ symfony plugin:install sfDatePickerTimePlugin
Default options
$this->widgetSchema['date'] = new sfWidgetFormDatePickerTime();
Custom options
$this->widgetSchema['date'] = new sfWidgetFormDatePickerTime(array( 'date' => array('option' => 'value'), // Options for the sfWidgetFormDatePicker 'time' => array('option' => 'value') // Options for the sfWidgetFormTime ));
Custom options and additionnal jQuery datepicker options
$this->widgetSchema['date'] = new sfWidgetFormDatePickerTime(array( 'date' => array( 'option' => 'value', // Options for the sfWidgetFormDatePicker 'jq_picker_options' => array( 'option' => 'value' // Options for the jQuery datepicker - http://jqueryui.com/demos/datepicker/#options ) ), 'time' => array('option' => 'value') // Options for the sfWidgetFormTime ));
Theses options are used in the example screenshot
$this->widgetSchema['date_naissance'] = new sfWidgetFormDatePickerTime(array( 'date' => array( 'jq_picker_options' => array( 'buttonImage' => '/images/ul/icones/calendrier.gif', 'buttonImageOnly' => true, 'showOn' => 'button' ) ), 'time' => array( 'format_without_seconds' => '%hour% h %minute%' ) ));
