mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-17 23:09:10 +08:00
flat => inline
This commit is contained in:
@@ -51,7 +51,7 @@ class DatePicker extends InputWidget
|
|||||||
/**
|
/**
|
||||||
* @var boolean If true, shows the widget as an inline calendar and the input as a hidden field.
|
* @var boolean If true, shows the widget as an inline calendar and the input as a hidden field.
|
||||||
*/
|
*/
|
||||||
public $flat = false;
|
public $inline = false;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -74,7 +74,7 @@ class DatePicker extends InputWidget
|
|||||||
{
|
{
|
||||||
$contents = array();
|
$contents = array();
|
||||||
|
|
||||||
if ($this->flat === false) {
|
if ($this->inline === false) {
|
||||||
if ($this->hasModel()) {
|
if ($this->hasModel()) {
|
||||||
$contents[] = Html::activeTextInput($this->model, $this->attribute, $this->options);
|
$contents[] = Html::activeTextInput($this->model, $this->attribute, $this->options);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user