|
|
@ -62,7 +62,7 @@ use yii\helpers\ArrayHelper; |
|
|
|
* ] |
|
|
|
* ] |
|
|
|
* ]); |
|
|
|
* ]); |
|
|
|
* |
|
|
|
* |
|
|
|
* // With standard layout you would use 'template' to size a specific field: |
|
|
|
* // With 'default' layout you would use 'template' to size a specific field: |
|
|
|
* // echo $form->field($model, 'demo', [ |
|
|
|
* // echo $form->field($model, 'demo', [ |
|
|
|
* // 'template' => '{label} <div class="row"><div class="col-sm-4">{input}{error}{hint}</div></div>' |
|
|
|
* // 'template' => '{label} <div class="row"><div class="col-sm-4">{input}{error}{hint}</div></div>' |
|
|
|
* // ]); |
|
|
|
* // ]); |
|
|
@ -84,12 +84,12 @@ use yii\helpers\ArrayHelper; |
|
|
|
class ActiveField extends \yii\widgets\ActiveField |
|
|
|
class ActiveField extends \yii\widgets\ActiveField |
|
|
|
{ |
|
|
|
{ |
|
|
|
/** |
|
|
|
/** |
|
|
|
* @var bool whether to render [[checkboxList()]] and [[radioList()]] inline. Default is `false`. |
|
|
|
* @var bool whether to render [[checkboxList()]] and [[radioList()]] inline. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public $inline = false; |
|
|
|
public $inline = false; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* @var string|null optional template to render the `{input}` placheolder content |
|
|
|
* @var string|null optional template to render the `{input}` placeholder content |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public $inputTemplate; |
|
|
|
public $inputTemplate; |
|
|
|
|
|
|
|
|
|
|
@ -119,7 +119,7 @@ class ActiveField extends \yii\widgets\ActiveField |
|
|
|
public $enableLabel = true; |
|
|
|
public $enableLabel = true; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* @inheritDoc |
|
|
|
* @inheritdoc |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function __construct($config = []) |
|
|
|
public function __construct($config = []) |
|
|
|
{ |
|
|
|
{ |
|
|
@ -129,7 +129,7 @@ class ActiveField extends \yii\widgets\ActiveField |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* @inheritDoc |
|
|
|
* @inheritdoc |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function render($content = null) |
|
|
|
public function render($content = null) |
|
|
|
{ |
|
|
|
{ |
|
|
@ -161,7 +161,7 @@ class ActiveField extends \yii\widgets\ActiveField |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* @inheritDoc |
|
|
|
* @inheritdoc |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function checkbox($options = [], $enclosedByLabel = true) |
|
|
|
public function checkbox($options = [], $enclosedByLabel = true) |
|
|
|
{ |
|
|
|
{ |
|
|
@ -182,7 +182,7 @@ class ActiveField extends \yii\widgets\ActiveField |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* @inheritDoc |
|
|
|
* @inheritdoc |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function checkboxList($items, $options = []) |
|
|
|
public function checkboxList($items, $options = []) |
|
|
|
{ |
|
|
|
{ |
|
|
@ -202,7 +202,7 @@ class ActiveField extends \yii\widgets\ActiveField |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* @inheritDoc |
|
|
|
* @inheritdoc |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function radioList($items, $options = []) |
|
|
|
public function radioList($items, $options = []) |
|
|
|
{ |
|
|
|
{ |
|
|
@ -222,7 +222,7 @@ class ActiveField extends \yii\widgets\ActiveField |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* @inheritDoc |
|
|
|
* @inheritdoc |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function label($label = null, $options = []) |
|
|
|
public function label($label = null, $options = []) |
|
|
|
{ |
|
|
|
{ |
|
|
|