'get',
'options' => [ 'class' => 'search-work-form' ],
'action' => [ '' ],
]);
echo $form->field($model, 'city', [
'options' => [
'class' => 'blocks-check-list-wrapp',
],
'template' => "
{label}
\n{input}
\n{hint}\n{error}",
])
->dropDownList($cities, [ 'prompt' => 'Любой' ]);
echo $form->field($model, 'type', [
'options' => [
'class' => 'blocks-check-list-wrapp',
],
'template' => "
{label}
\n{input}
\n{hint}\n{error}",
])
->dropDownList([
1 => 'Физическое лицо',
2 => 'Компания',
], [ 'prompt' => 'Любой' ]);
?>
Рейтинг
field($model, 'rating')
->label(false)
->radioList([
'' => 'Все',
0 => 0,
1 => 1,
2 => 2,
3 => 3,
4 => 4,
5 => 5,
]);
?>
field($model, 'online', [
'options' => [
'class' => 'blocks-check-list-wrapp',
],
'template' => "
{label}
\n{input}\n{hint}\n{error}",
])
->radioList([
'' => 'Все',
1 => 'Онлайн',
], [
'item' => function($index, $label, $name, $checked, $value) use ($model) {
$checked = ( $model->online == $value );
return "
";
},
'unselect' => NULL,
]);
echo '
' . Html::submitInput('Найти') . '
';
$form->end();
?>
Найти заказчика
Заказчики готовые приступить к работе
= $dataProvider->totalCount ?>
'get',
'action' => [ '' ],
'options' => [ 'class' => 'search-worker-form' ],
]);
echo $form2->field($model, 'info', [ 'options' => [ 'tag' => false ] ])
->label(false)
->textInput([ 'placeholder' => $model->getAttributeLabel('info') ]);
echo Html::submitInput('Найти');
$form2->end();
?>
Добавить себя в каталог
$dataProvider,
'layout' => "{items}\n{pager}",
'options' => [
'class' => 'search-worker-blocks-wr style',
],
'itemOptions' => [
'class' => 'search-worker-blocks',
],
'itemView' => '_customer_list_view',
]);
?>