title = 'Учетные данные'; $this->params['breadcrumbs'][] = $this->title; ?>
title ?>
field($user, 'isPerformer', [ 'template' => "{input}\n{label}\n{error}" ]) ->label('Я - исполнитель') ->checkbox([ 'class' => 'custom-check disabled admin-check', 'disabled' => 'disabled', ], false); ?>
Обязательно должны быть указаны специализации услуг, что бы вы попали в рейтинг исполнителей
field($user, 'isCustomer', [ 'template' => "{input}\n{label}\n{error}" ]) ->label('Я - заказчик') ->checkbox([ 'class' => 'custom-check disabled admin-check', 'disabled' => 'disabled', ], false); ?>
Обязательно должны быть созданы проекты вами, что бы вы попали в рейтинг исполнителей
Кто вы:
field ($user, 'type') ->label (false) ->radioList ( [1 => 'Частное лицо', 2 => 'Компания'], [ 'item' => function($index, $label, $name, $checked, $value) { $return = '
'; $return .= ''; $return .= ''; $return .= '
'; return $return; } ] ); ?>
field ($company_info, 'name', ['options' => ['class' => 'form-group company_info']]) ->label ('Название компании') ->textInput (['class'=> 'custom-input-2']); ?>
field ($company_info, 'staff', ['options' => ['class' => 'form-group company_info']]) ->label ('Количество сотрудников') ->textInput (['class'=> 'custom-input-2','type'=>'number']); ?>
field ($user, 'firstname') ->label ('Имя') ->textInput (['class'=> 'custom-input-2']); ?>
field ($user, 'lastname') ->label ('Фамилия') ->textInput (['class'=> 'custom-input-2']); ?>
field ($user_info, 'country') ->label ('Ваша страна') ->textInput (['class'=> 'custom-input-2']); ?>
field($user_info, '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; }'), ], ]); ?>
field ($company_info, 'street', ['options' => ['class' => 'form-group company_info']]) ->label ('Улица') ->textInput (['class'=> 'custom-input-2']); ?>
field ($company_info, 'house', ['options' => ['class' => 'form-group company_info']]) ->label ('Дом') ->textInput (['class'=> 'custom-input-2']); ?>
field ($user, 'email') ->label ('Email') ->textInput (['class'=> 'custom-input-2']); ?>
field ($company_info, 'hide_mail', ['options' => ['class' => 'form-group company_info', ], 'template' => "{input}{label}\n{hint}\n{error}"]) ->label ('не публиковать Email') ->checkbox (['checked'=>'checked', 'class'=> 'custom-check'], false); ?>
Статус:
field ($user_info, 'busy') ->label (false) ->radioList ( [0 => 'Свободен', 1 => 'Занят'], [ 'item' => function($index, $label, $name, $checked, $value) { $return = '
'; $return .= ''; $return .= ''; $return .= '
'; return $return; } ] ); ?>
Аватар
$user_info, 'field'=>'image', 'width'=>180, 'height'=>180, 'multi'=>false, 'gallery' =>$user_info->image, 'name' => 'Выбрать файл' ]); ?>
Подложка
$user_info, 'field'=>'poster', 'width'=>1920, 'height'=>600, 'multi'=>false, 'gallery' =>$user_info->poster, 'name' => 'Выбрать файл' ]); ?>
Членство в МФП
field ($user_info, 'member') ->label (false) ->radioList ([0 => 'Не хочу', 1 => 'Хочу стать'], [ 'item' => function($index, $label, $name, $checked, $value) { $return = '
'; $return .= ''; $return .= ''; $return .= '
'; return $return; } ] ); ?>
Выберите если хотите стать членом МФП и наш менеджер свяжется с Вами.
'input-blocks-wrapper button']); $form->end (); ?>