sort->getAttributeOrders(); $active_key = array_keys($sort_array)[ 0 ]; $active_value = $sort_array[ $active_key ]; $sort_name = ( ( $active_value == 4 ) ? '-' : '' ) . $active_key; ?>
'get', 'options' => [ 'class' => 'search-work-form' ], 'action' => [ '' ], ]); echo $form->field($model, 'city') ->widget(Select2::classname(), [ 'options' => [ 'placeholder' => 'Выбор города ...' ], 'pluginOptions' => [ 'allowClear' => true, 'minimumInputLength' => 3, 'ajax' => [ 'url' => \yii\helpers\Url::to([ 'site/city' ]), 'dataType' => 'json', 'data' => new JsExpression('function(params) { return {q:params.term}; }'), ], 'escapeMarkup' => new JsExpression('function (markup) { return markup; }'), 'templateResult' => new JsExpression('function(city) { return city.text; }'), 'templateSelection' => new JsExpression('function (city) { return city.text; }'), ], ]); 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', [ 'template' => "{label}
{$model->rating}

{input}\n{hint}\n{error}", 'labelOptions' => [ 'class' => 'blocks-check-title', ], ]) ->widget(SliderInput::className(), [ 'clientOptions' => [ 'min' => 0, 'max' => 5, 'step' => 0.5, ], 'clientEvents' => [ 'slide' => "function( event, ui ) { $( '#{$form->id}-rating' ).text(ui.value); $('input[name=\"{$model->formName()}[rating]\"]').val(ui.value); }", ], ]); ?>
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(); ?>
Найти заказчика
Заказчики готовые приступить к работе totalCount ?>
'get', 'action' => [ '' ], 'options' => [ 'class' => 'search-worker-form' ], ]); echo $form2->field($model, 'info', [ 'options' => [ 'tag' => 'span' ] ]) ->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', ]); ?>