diff --git a/frontend/views/accounts/general.php b/frontend/views/accounts/general.php index ed6879c..5e98614 100755 --- a/frontend/views/accounts/general.php +++ b/frontend/views/accounts/general.php @@ -16,7 +16,7 @@ use yii\web\JsExpression; $this->title = 'Учетные данные'; - $this->params['breadcrumbs'][] = $this->title; + $this->params[ 'breadcrumbs' ][] = $this->title; ?>
title ?>
@@ -29,8 +29,9 @@
field($user_info, 'is_freelancer', [ 'template' => "{input}\n{label}\n{error}" ]) ->label('Я - исполнитель') + ->hint('hello world') ->checkbox([ - 'class' => 'custom-check admin-check', + 'class' => 'custom-check admin-check', ], false); ?>
@@ -43,7 +44,7 @@ field($user_info, 'is_customer', [ 'template' => "{input}\n{label}\n{error}" ]) ->label('Я - заказчик') ->checkbox([ - 'class' => 'custom-check admin-check', + 'class' => 'custom-check admin-check', ], false); ?>
@@ -55,23 +56,22 @@
Кто вы:
- field ($user, 'type') - ->label (false) - ->radioList ( - [1 => 'Частное лицо', 2 => 'Компания'], - [ - 'item' => function($index, $label, $name, $checked, $value) { - $return = '
'; - $return .= ''; - $return .= ''; - $return .= '
'; - return $return; - } - ] - ); - ?> + field($user, 'type') + ->label(false) + ->radioList([ + 1 => 'Частное лицо', + 2 => 'Компания', + ], [ + 'item' => function($index, $label, $name, $checked, $value) { + $return = '
'; + $return .= ''; + $return .= ''; + $return .= '
'; + return $return; + }, + ]); ?>
@@ -79,16 +79,17 @@
- field ($company_info, 'name', ['options' => ['class' => 'form-group company_info']]) - ->textInput (['class'=> 'custom-input-2']); - ?> + field($company_info, 'name', [ 'options' => [ 'class' => 'form-group company_info' ] ]) + ->textInput([ 'class' => 'custom-input-2' ]); ?>
- field ($company_info, 'staff', ['options' => ['class' => 'form-group company_info']]) - ->textInput (['class'=> 'custom-input-2','type'=>'number']); - ?> + field($company_info, 'staff', [ 'options' => [ 'class' => 'form-group company_info' ] ]) + ->textInput([ + 'class' => 'custom-input-2', + 'type' => 'number', + ]); ?>
Контакты представителя:
@@ -96,111 +97,111 @@
- field ($user, 'firstname') - ->label ('Имя') - ->textInput (['class'=> 'custom-input-2']); - ?> + field($user, 'firstname') + ->label('Имя') + ->textInput([ 'class' => 'custom-input-2' ]); ?>
- field ($user, 'lastname') - ->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, '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($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, '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($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, '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, '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; - } - ] - ); - ?> +
Статус:
+ field($user_info, 'busy') + ->label(false) + ->radioList([ + 0 => 'Свободен', + 1 => 'Занят', + ], [ + 'item' => function($index, $label, $name, $checked, $value) { + $return = '
'; + $return .= ''; + $return .= ''; + $return .= '
'; + return $return; + }, + ]); ?>
@@ -208,44 +209,45 @@
Аватар
-
Формат: PNG, JPG, GIF
Размер: 180x180 px
Файлы большего размера и других пропорций будут конвертироваться
+
+
Формат: PNG, JPG, GIF
Размер: 180x180 px
Файлы большего размера и других пропорций будут конвертироваться +
+
$user_info, - 'field'=>'image', - 'size' => [ + 'model' => $user_info, + 'field' => 'image', + 'size' => [ [ - 'width'=>48, - 'height'=>48, + 'width' => 48, + 'height' => 48, ], [ - 'width'=>180, - 'height'=>180, + 'width' => 180, + 'height' => 180, ], ], - 'multi'=>false, - 'gallery' =>$user_info->image, - 'name' => 'Выбрать файл' - ]); - ?> + 'multi' => false, + 'gallery' => $user_info->image, + 'name' => 'Выбрать файл', + ]); ?>
Подложка
- $user_info, - 'field'=>'poster', - 'size' => [ - [ - 'width'=>1920, - 'height'=>380, - ] + $user_info, + 'field' => 'poster', + 'size' => [ + [ + 'width' => 1920, + 'height' => 380, ], - 'multi'=>false, - 'gallery' =>$user_info->poster, - 'name' => 'Выбрать файл' - ]); - ?> + ], + 'multi' => false, + 'gallery' => $user_info->poster, + 'name' => 'Выбрать файл', + ]); ?>
@@ -255,22 +257,22 @@
Членство в МФП
- field ($user_info, 'member') - ->label (false) - ->radioList ([0 => 'Не хочу', 1 => 'Хочу стать'], - [ - 'item' => function($index, $label, $name, $checked, $value) { - $return = '
'; - $return .= ''; - $return .= ''; - $return .= '
'; - return $return; - } - ] - ); - ?> + field($user_info, 'member') + ->label(false) + ->radioList([ + 0 => 'Не хочу', + 1 => 'Хочу стать', + ], [ + 'item' => function($index, $label, $name, $checked, $value) { + $return = '
'; + $return .= ''; + $return .= ''; + $return .= '
'; + return $return; + }, + ]); ?>
Выберите если хотите стать членом МФП и наш менеджер свяжется с Вами.
@@ -280,9 +282,8 @@
- 'input-blocks-wrapper button']); - $form->end (); - ?> + 'input-blocks-wrapper button' ]); + $form->end(); ?>
diff --git a/frontend/views/performer/project-list.php b/frontend/views/performer/project-list.php index ed4c4a6..241219c 100644 --- a/frontend/views/performer/project-list.php +++ b/frontend/views/performer/project-list.php @@ -14,7 +14,7 @@ $this->title = 'My Yii Application'; ?> -
+
Сейчас totalCount ?> предложений