'get',
'options' => [ 'class' => 'search-work-form' ],
'action' => [ '' ],
]);
echo $form->field($model, 'specialization')
->dropDownList($specialization, [ 'prompt' => 'Любая' ]);
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; }'),
],
]);
?>
Бюджет
= $form->field($model, 'budget_from', [
'template' => "{input}\n{error}",
'options' => [ 'tag' => 'span' ],
])
->textInput([ 'placeholder' => $model->getAttributeLabel('budget_from') ]) ?>
= $form->field($model, 'budget_to', [
'template' => "{input}\n{error}",
'options' => [ 'tag' => 'span' ],
])
->textInput([ 'placeholder' => $model->getAttributeLabel('budget_to') ]) ?>
= $form->field($model, 'budget_currency', [
'template' => "{input}\n{error}",
'options' => [ 'class' => 'blocks-check-list-wrapp check-valuta' ],
])
->dropDownList($currencies) ?>
= $form->field($model, 'contractual', [
'template' => "{input}\n{label}\n{hint}\n{error}",
'options' => [ 'class' => 'blocks-check-list' ],
])
->label("
{$model->getAttributeLabel('contractual')}", ['class' => ''])
->checkbox([ ], false) ?>
= $form->field($model, 'payment', [ 'template' => "{input}\n{error}" ])
->checkboxList($payments, [
'item' => function($index, $label, $name, $checked, $value) {
$return = '
';
$return .= '';
$return .= '';
$return .= '
';
return $return;
},
]); ?>
end();
/*
?>
*/ ?>