title = 'Учетные данные'; $this->params[ 'breadcrumbs' ][] = $this->title; ?>
title ?>
session->removeFlash('reg_success'); if(!empty( $reg_success )) { echo Html::tag('div', Html::button(Html::tag('span', '×', [ 'aria-hidden' => true ]), [ 'class' => 'close', 'data-dismiss' => 'alert', 'aria-label' => 'close', ]).$reg_success, [ 'class' => 'alert alert-success alert-dismissible fade in', 'role' => 'alert', ]); } ?>
field($user_info, 'is_freelancer', [ 'template' => "{input}\n{label}\n{error}" ]) ->label('Я - исполнитель') ->checkbox([ 'class' => 'custom-check admin-check', ], false); ?>
Обязательно должны быть указаны специализации услуг, что бы вы попали в рейтинг исполнителей specializations )) { echo "

В Вашем профиле указаны специализации: " . count($user->specializations) . "

"; } else { echo "

В Вашем профиле не указаны специализации. Чтобы указать - перейдите по " . Html::a('ссылке', [ 'accounts/service' ], [ 'target' => '_blank' ]) . "

"; } ?>
field($user_info, 'is_customer', [ 'template' => "{input}\n{label}\n{error}" ]) ->label('Я - заказчик') ->checkbox([ 'class' => 'custom-check admin-check', ], false); ?>
Обязательно должны быть созданы заказы Вами, что бы вы попали в рейтинг заказчиков projects )) { echo "

В Вашем профиле добавлены " . Yii::t('app', 'projects') . ": " . count($user->projects) . "

"; } else { echo "

В Вашем профиле не добавлены " . Yii::t('app', 'projects') . ". Чтобы добавить - перейдите по " . Html::a('ссылке', [ 'accounts/projects' ], [ 'target' => '_blank' ]) . "

"; } ?>
Кто вы:
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' ], 'enableClientValidation' => false, ]) ->textInput([ 'class' => 'custom-input-2 no-client-validation' ]); ?>
field($company_info, 'staff', [ 'options' => [ 'class' => 'form-group company_info' ] ]) ->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') ->widget(Select2::classname(), [ 'options' => [ 'placeholder' => 'Выбор страны ...', ], 'pluginOptions' => [ 'allowClear' => true, 'minimumInputLength' => 3, 'ajax' => [ 'url' => \yii\helpers\Url::to([ 'site/country' ]), 'dataType' => 'json', 'data' => new JsExpression('function(params) { return {q:params.term}; }'), ], 'escapeMarkup' => new JsExpression('function (markup) { return markup; }'), 'templateResult' => new JsExpression('function(country) { return country.text; }'), 'templateSelection' => new JsExpression('function (country) { return country.text; }'), ], ]); ?>
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' ] ]) ->textInput([ 'class' => 'custom-input-2' ]); ?>
field($company_info, 'house', [ 'options' => [ 'class' => 'form-group company_info' ] ]) ->textInput([ 'class' => 'custom-input-2' ]); ?>
field($user_info, 'email') ->textInput([ 'class' => 'custom-input-2', 'value' => empty( $user_info->email ) ? $user->email : $user_info->email, ]); ?>
field($user_info, 'hide_mail', [ 'options' => [ 'class' => 'form-group', ], '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; }, ]); ?>
Аватар
Формат: PNG, JPG, GIF
Размер: 180x180 px
Файлы большего размера и других пропорций будут конвертироваться
$user_info, 'field' => 'image', 'size' => [ [ 'width' => 48, 'height' => 48, ], [ 'width' => 180, 'height' => 180, ], ], 'remover' => true, 'multi' => false, 'gallery' => $user_info->image, 'name' => 'Выбрать файл', ]); ?>
Подложка
$user_info, 'field' => 'poster', 'size' => [ [ 'width' => 1920, 'height' => 380, ], ], '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(); ?>