Skip to content

Commit

Permalink
dev
Browse files Browse the repository at this point in the history
  • Loading branch information
skeeks-semenov committed Feb 7, 2020
1 parent 4f40de3 commit ad5970e
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/CmsSearchComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand All @@ -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();

Expand Down

0 comments on commit ad5970e

Please sign in to comment.