|
|
|
@ -290,6 +290,20 @@ class ActiveField extends \yii\widgets\ActiveField
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Renders Bootstrap static form control. |
|
|
|
|
* @param array $options the tag options in terms of name-value pairs. These will be rendered as |
|
|
|
|
* the attributes of the resulting tag. There are also a special options: |
|
|
|
|
* - encode: boolean, whether value should be HTML-encoded or not. |
|
|
|
|
* @return $this the field object itself |
|
|
|
|
*/ |
|
|
|
|
public function staticControl($options = []) |
|
|
|
|
{ |
|
|
|
|
$this->adjustLabelFor($options); |
|
|
|
|
$this->parts['{input}'] = Html::activeStaticControl($this->model, $this->attribute, $options); |
|
|
|
|
return $this; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @inheritdoc |
|
|
|
|
*/ |
|
|
|
|
public function label($label = null, $options = []) |
|
|
|
|