field($model, 'name')->textInput(['maxlength' => true]) ?> field($model, 'description')->textarea(['rows' => 6]) ?> field($model, 'budget')->textInput(['maxlength' => true]) ?> field($model, 'company_id')->widget(Select2::class, [ 'data' => \yii\helpers\ArrayHelper::map(\common\models\Company::find()->all(),'id', 'name'), 'options' => ['placeholder' => '...','class' => 'form-control'], 'pluginOptions' => [ 'allowClear' => true ], ] ); ?> field($model, 'status') ->dropDownList(\yii\helpers\ArrayHelper::map( \common\models\Status::find() ->joinWith('useStatuses') ->where(['`use_status`.`use`' => \common\models\UseStatus::USE_PROJECT])->all(), 'id', 'name'), [ 'prompt' => 'Выберите' ] ) ?> field($model, 'hh_id')->widget(Select2::class, [ 'data' => \yii\helpers\ArrayHelper::map(\common\models\Hh::find()->all(),'id', 'title'), 'options' => ['placeholder' => '...','class' => 'form-control'], 'pluginOptions' => [ 'allowClear' => true ], ] ); ?>
field($model, 'fields')->widget(MultipleInput::class, [ 'cloneButton' => true, 'columns' => [ [ 'name' => 'field_id', 'type' => 'dropDownList', 'title' => 'Поле', 'defaultValue' => null, 'items' => \yii\helpers\ArrayHelper::map(\backend\modules\settings\models\AdditionalFields::find() ->joinWith('useFields') ->where(['`use_field`.`use`' => \common\models\UseStatus::USE_PROJECT]) ->all(), 'id', 'name'), 'options' => ['prompt' => 'Выберите'] ], [ 'name' => 'value', 'title' => 'Значение', 'enableError' => true, 'type' => InputFile::class, 'options' => [ 'language' => 'ru', 'controller' => 'elfinder', 'name' => 'fields[value]', 'id' => 'fields-value', 'options' => ['class' => 'form-control itemImg', 'maxlength' => '255'], 'buttonOptions' => ['class' => 'btn btn-primary'], 'value' => $model->fields[0]['value'], 'buttonName' => 'Выбрать файл', ] ], [ 'name' => 'order', 'title' => 'Приоритет', 'enableError' => true, 'options' => [ 'class' => 'input-priority' ] ] ] ])->label('Дополнительно'); ?>
field($model, 'user')->widget(Select2::class, [ 'data' => \yii\helpers\ArrayHelper::map(\common\models\UserCard::find()->all(),'id', 'fio'), 'options' => ['placeholder' => '...','class' => 'form-control', 'multiple' => true], 'pluginOptions' => [ 'allowClear' => true ], ] ); ?>
'btn btn-success']) ?>