diff --git a/src/CmsSearchComponent.php b/src/CmsSearchComponent.php index 57093a0..e26880b 100644 --- a/src/CmsSearchComponent.php +++ b/src/CmsSearchComponent.php @@ -111,7 +111,7 @@ public function renderConfigFormFields(ActiveForm $form) $result = $form->fieldSet(\Yii::t('skeeks/search', 'Main')); $result .= $form->field($this, 'searchQueryParamName'); - $result .= $form->fieldInputInt($this, 'phraseLiveTime'); + $result .= $form->field($this, 'phraseLiveTime'); $result .= $form->fieldSetEnd(); @@ -121,8 +121,14 @@ public function renderConfigFormFields(ActiveForm $form) $result .= $form->fieldSelectMulti($this, 'searchElementContentIds', CmsContent::getDataForSelect()); $result .= $form->fieldSelectMulti($this, 'searchElementFields', (new \skeeks\cms\models\CmsContentElement())->attributeLabels()); - $result .= $form->fieldRadioListBoolean($this, 'enabledElementProperties'); - $result .= $form->fieldRadioListBoolean($this, 'enabledElementPropertiesSearchable'); + $result .= $form->field($this, 'enabledElementProperties')->checkbox([ + 'uncheck' => \skeeks\cms\components\Cms::BOOL_N, + 'value' => \skeeks\cms\components\Cms::BOOL_Y, + ]); + $result .= $form->field($this, 'enabledElementPropertiesSearchable')->checkbox([ + 'uncheck' => \skeeks\cms\components\Cms::BOOL_N, + 'value' => \skeeks\cms\components\Cms::BOOL_Y, + ]); $result .= $form->fieldSetEnd();