|
|
@ -201,6 +201,9 @@ class ActiveField extends \yii\widgets\ActiveField |
|
|
|
$this->template = $options['template']; |
|
|
|
$this->template = $options['template']; |
|
|
|
unset($options['template']); |
|
|
|
unset($options['template']); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (isset($options['label'])) { |
|
|
|
|
|
|
|
$this->parts['{labelTitle}'] = $options['label']; |
|
|
|
|
|
|
|
} |
|
|
|
if ($this->form->layout === 'horizontal') { |
|
|
|
if ($this->form->layout === 'horizontal') { |
|
|
|
Html::addCssClass($this->wrapperOptions, $this->horizontalCssClasses['offset']); |
|
|
|
Html::addCssClass($this->wrapperOptions, $this->horizontalCssClasses['offset']); |
|
|
|
} |
|
|
|
} |
|
|
@ -223,6 +226,9 @@ class ActiveField extends \yii\widgets\ActiveField |
|
|
|
$this->template = $options['template']; |
|
|
|
$this->template = $options['template']; |
|
|
|
unset($options['template']); |
|
|
|
unset($options['template']); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (isset($options['label'])) { |
|
|
|
|
|
|
|
$this->parts['{labelTitle}'] = $options['label']; |
|
|
|
|
|
|
|
} |
|
|
|
if ($this->form->layout === 'horizontal') { |
|
|
|
if ($this->form->layout === 'horizontal') { |
|
|
|
Html::addCssClass($this->wrapperOptions, $this->horizontalCssClasses['offset']); |
|
|
|
Html::addCssClass($this->wrapperOptions, $this->horizontalCssClasses['offset']); |
|
|
|
} |
|
|
|
} |
|
|
@ -381,6 +387,8 @@ class ActiveField extends \yii\widgets\ActiveField |
|
|
|
} |
|
|
|
} |
|
|
|
$this->parts['{beginLabel}'] = Html::beginTag('label', $options); |
|
|
|
$this->parts['{beginLabel}'] = Html::beginTag('label', $options); |
|
|
|
$this->parts['{endLabel}'] = Html::endTag('label'); |
|
|
|
$this->parts['{endLabel}'] = Html::endTag('label'); |
|
|
|
$this->parts['{labelTitle}'] = $label; |
|
|
|
if (!isset($this->parts['{labelTitle}'])) { |
|
|
|
|
|
|
|
$this->parts['{labelTitle}'] = $label; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|