Commit bf9aa90fb198062d5b80a616c1d91e2cd9113ac8
1 parent
8f939a27
add Vitaliy's widgets
Showing
36 changed files
with
33 additions
and
41 deletions
Show diff stats
composer.lock
| @@ -204,16 +204,16 @@ | @@ -204,16 +204,16 @@ | ||
| 204 | }, | 204 | }, |
| 205 | { | 205 | { |
| 206 | "name": "bower-asset/jquery.inputmask", | 206 | "name": "bower-asset/jquery.inputmask", |
| 207 | - "version": "3.2.5", | 207 | + "version": "3.2.7", |
| 208 | "source": { | 208 | "source": { |
| 209 | "type": "git", | 209 | "type": "git", |
| 210 | "url": "https://github.com/RobinHerbots/jquery.inputmask.git", | 210 | "url": "https://github.com/RobinHerbots/jquery.inputmask.git", |
| 211 | - "reference": "d08264a678865849c808359d126e3bddb9ec87a6" | 211 | + "reference": "5a72c563b502b8e05958a524cdfffafe9987be38" |
| 212 | }, | 212 | }, |
| 213 | "dist": { | 213 | "dist": { |
| 214 | "type": "zip", | 214 | "type": "zip", |
| 215 | - "url": "https://api.github.com/repos/RobinHerbots/jquery.inputmask/zipball/d08264a678865849c808359d126e3bddb9ec87a6", | ||
| 216 | - "reference": "d08264a678865849c808359d126e3bddb9ec87a6", | 215 | + "url": "https://api.github.com/repos/RobinHerbots/jquery.inputmask/zipball/5a72c563b502b8e05958a524cdfffafe9987be38", |
| 216 | + "reference": "5a72c563b502b8e05958a524cdfffafe9987be38", | ||
| 217 | "shasum": "" | 217 | "shasum": "" |
| 218 | }, | 218 | }, |
| 219 | "require": { | 219 | "require": { |
| @@ -615,16 +615,16 @@ | @@ -615,16 +615,16 @@ | ||
| 615 | }, | 615 | }, |
| 616 | { | 616 | { |
| 617 | "name": "kartik-v/yii2-krajee-base", | 617 | "name": "kartik-v/yii2-krajee-base", |
| 618 | - "version": "v1.7.9", | 618 | + "version": "1.8.2", |
| 619 | "source": { | 619 | "source": { |
| 620 | "type": "git", | 620 | "type": "git", |
| 621 | "url": "https://github.com/kartik-v/yii2-krajee-base.git", | 621 | "url": "https://github.com/kartik-v/yii2-krajee-base.git", |
| 622 | - "reference": "6f10fd0a0bfccd729764c65fa65eb4ccf2cbade9" | 622 | + "reference": "0c274e31e4392cbafc5fe158eae81738794e02ce" |
| 623 | }, | 623 | }, |
| 624 | "dist": { | 624 | "dist": { |
| 625 | "type": "zip", | 625 | "type": "zip", |
| 626 | - "url": "https://api.github.com/repos/kartik-v/yii2-krajee-base/zipball/6f10fd0a0bfccd729764c65fa65eb4ccf2cbade9", | ||
| 627 | - "reference": "6f10fd0a0bfccd729764c65fa65eb4ccf2cbade9", | 626 | + "url": "https://api.github.com/repos/kartik-v/yii2-krajee-base/zipball/0c274e31e4392cbafc5fe158eae81738794e02ce", |
| 627 | + "reference": "0c274e31e4392cbafc5fe158eae81738794e02ce", | ||
| 628 | "shasum": "" | 628 | "shasum": "" |
| 629 | }, | 629 | }, |
| 630 | "require": { | 630 | "require": { |
| @@ -657,7 +657,7 @@ | @@ -657,7 +657,7 @@ | ||
| 657 | "widget", | 657 | "widget", |
| 658 | "yii2" | 658 | "yii2" |
| 659 | ], | 659 | ], |
| 660 | - "time": "2015-11-25 07:03:35" | 660 | + "time": "2016-01-10 12:26:29" |
| 661 | }, | 661 | }, |
| 662 | { | 662 | { |
| 663 | "name": "kartik-v/yii2-widget-select2", | 663 | "name": "kartik-v/yii2-widget-select2", |
| @@ -665,12 +665,12 @@ | @@ -665,12 +665,12 @@ | ||
| 665 | "source": { | 665 | "source": { |
| 666 | "type": "git", | 666 | "type": "git", |
| 667 | "url": "https://github.com/kartik-v/yii2-widget-select2.git", | 667 | "url": "https://github.com/kartik-v/yii2-widget-select2.git", |
| 668 | - "reference": "701bf8069a85fafbac1ced54dcd00e579e60471b" | 668 | + "reference": "519241c7360a0470624f24d872741e1ea880de75" |
| 669 | }, | 669 | }, |
| 670 | "dist": { | 670 | "dist": { |
| 671 | "type": "zip", | 671 | "type": "zip", |
| 672 | "url": "https://api.github.com/repos/kartik-v/yii2-widget-select2/zipball/519241c7360a0470624f24d872741e1ea880de75", | 672 | "url": "https://api.github.com/repos/kartik-v/yii2-widget-select2/zipball/519241c7360a0470624f24d872741e1ea880de75", |
| 673 | - "reference": "701bf8069a85fafbac1ced54dcd00e579e60471b", | 673 | + "reference": "519241c7360a0470624f24d872741e1ea880de75", |
| 674 | "shasum": "" | 674 | "shasum": "" |
| 675 | }, | 675 | }, |
| 676 | "require": { | 676 | "require": { |
| @@ -705,7 +705,7 @@ | @@ -705,7 +705,7 @@ | ||
| 705 | "widget", | 705 | "widget", |
| 706 | "yii2" | 706 | "yii2" |
| 707 | ], | 707 | ], |
| 708 | - "time": "2016-01-10 16:51:42" | 708 | + "time": "2016-02-01 02:19:01" |
| 709 | }, | 709 | }, |
| 710 | { | 710 | { |
| 711 | "name": "lusitanian/oauth", | 711 | "name": "lusitanian/oauth", |
| @@ -1080,12 +1080,12 @@ | @@ -1080,12 +1080,12 @@ | ||
| 1080 | "source": { | 1080 | "source": { |
| 1081 | "type": "git", | 1081 | "type": "git", |
| 1082 | "url": "https://github.com/yiisoft/yii2-framework.git", | 1082 | "url": "https://github.com/yiisoft/yii2-framework.git", |
| 1083 | - "reference": "e4359f68b70caede1e09ecefb56e9435f7d140af" | 1083 | + "reference": "7ccbfdf4cfb0ce025e27455dc3e516af23eb2800" |
| 1084 | }, | 1084 | }, |
| 1085 | "dist": { | 1085 | "dist": { |
| 1086 | "type": "zip", | 1086 | "type": "zip", |
| 1087 | "url": "https://api.github.com/repos/yiisoft/yii2-framework/zipball/7ccbfdf4cfb0ce025e27455dc3e516af23eb2800", | 1087 | "url": "https://api.github.com/repos/yiisoft/yii2-framework/zipball/7ccbfdf4cfb0ce025e27455dc3e516af23eb2800", |
| 1088 | - "reference": "e4359f68b70caede1e09ecefb56e9435f7d140af", | 1088 | + "reference": "7ccbfdf4cfb0ce025e27455dc3e516af23eb2800", |
| 1089 | "shasum": "" | 1089 | "shasum": "" |
| 1090 | }, | 1090 | }, |
| 1091 | "require": { | 1091 | "require": { |
| @@ -1166,7 +1166,7 @@ | @@ -1166,7 +1166,7 @@ | ||
| 1166 | "framework", | 1166 | "framework", |
| 1167 | "yii2" | 1167 | "yii2" |
| 1168 | ], | 1168 | ], |
| 1169 | - "time": "2016-01-23 08:43:29" | 1169 | + "time": "2016-01-28 20:15:10" |
| 1170 | }, | 1170 | }, |
| 1171 | { | 1171 | { |
| 1172 | "name": "yiisoft/yii2-bootstrap", | 1172 | "name": "yiisoft/yii2-bootstrap", |
| @@ -1319,12 +1319,12 @@ | @@ -1319,12 +1319,12 @@ | ||
| 1319 | "source": { | 1319 | "source": { |
| 1320 | "type": "git", | 1320 | "type": "git", |
| 1321 | "url": "https://github.com/yiisoft/yii2-jui.git", | 1321 | "url": "https://github.com/yiisoft/yii2-jui.git", |
| 1322 | - "reference": "7ab7ff56bd54500212523e38f5fe3b9210325041" | 1322 | + "reference": "1425ab29929dd195f468d3c4eb340ab509f28b83" |
| 1323 | }, | 1323 | }, |
| 1324 | "dist": { | 1324 | "dist": { |
| 1325 | "type": "zip", | 1325 | "type": "zip", |
| 1326 | "url": "https://api.github.com/repos/yiisoft/yii2-jui/zipball/1425ab29929dd195f468d3c4eb340ab509f28b83", | 1326 | "url": "https://api.github.com/repos/yiisoft/yii2-jui/zipball/1425ab29929dd195f468d3c4eb340ab509f28b83", |
| 1327 | - "reference": "7ab7ff56bd54500212523e38f5fe3b9210325041", | 1327 | + "reference": "1425ab29929dd195f468d3c4eb340ab509f28b83", |
| 1328 | "shasum": "" | 1328 | "shasum": "" |
| 1329 | }, | 1329 | }, |
| 1330 | "require": { | 1330 | "require": { |
| @@ -1361,7 +1361,7 @@ | @@ -1361,7 +1361,7 @@ | ||
| 1361 | "jQuery UI", | 1361 | "jQuery UI", |
| 1362 | "yii2" | 1362 | "yii2" |
| 1363 | ], | 1363 | ], |
| 1364 | - "time": "2015-12-07 11:33:55" | 1364 | + "time": "2015-12-24 06:23:53" |
| 1365 | }, | 1365 | }, |
| 1366 | { | 1366 | { |
| 1367 | "name": "yiisoft/yii2-swiftmailer", | 1367 | "name": "yiisoft/yii2-swiftmailer", |
| @@ -1448,12 +1448,12 @@ | @@ -1448,12 +1448,12 @@ | ||
| 1448 | "source": { | 1448 | "source": { |
| 1449 | "type": "git", | 1449 | "type": "git", |
| 1450 | "url": "https://github.com/fzaninotto/Faker.git", | 1450 | "url": "https://github.com/fzaninotto/Faker.git", |
| 1451 | - "reference": "de2ed3bbe68254efeff68db60092fc8ed5298055" | 1451 | + "reference": "b312ab9d0c446971069e22a524fec01c7cddc75e" |
| 1452 | }, | 1452 | }, |
| 1453 | "dist": { | 1453 | "dist": { |
| 1454 | "type": "zip", | 1454 | "type": "zip", |
| 1455 | - "url": "https://api.github.com/repos/fzaninotto/Faker/zipball/e493d3dc48d15a6d44e213d02c729ad61cc758a9", | ||
| 1456 | - "reference": "de2ed3bbe68254efeff68db60092fc8ed5298055", | 1455 | + "url": "https://api.github.com/repos/fzaninotto/Faker/zipball/b312ab9d0c446971069e22a524fec01c7cddc75e", |
| 1456 | + "reference": "b312ab9d0c446971069e22a524fec01c7cddc75e", | ||
| 1457 | "shasum": "" | 1457 | "shasum": "" |
| 1458 | }, | 1458 | }, |
| 1459 | "require": { | 1459 | "require": { |
| @@ -1490,7 +1490,7 @@ | @@ -1490,7 +1490,7 @@ | ||
| 1490 | "faker", | 1490 | "faker", |
| 1491 | "fixtures" | 1491 | "fixtures" |
| 1492 | ], | 1492 | ], |
| 1493 | - "time": "2016-01-08 14:16:18" | 1493 | + "time": "2016-02-01 17:08:46" |
| 1494 | }, | 1494 | }, |
| 1495 | { | 1495 | { |
| 1496 | "name": "phpspec/php-diff", | 1496 | "name": "phpspec/php-diff", |
| @@ -1671,12 +1671,12 @@ | @@ -1671,12 +1671,12 @@ | ||
| 1671 | "source": { | 1671 | "source": { |
| 1672 | "type": "git", | 1672 | "type": "git", |
| 1673 | "url": "https://github.com/yiisoft/yii2-gii.git", | 1673 | "url": "https://github.com/yiisoft/yii2-gii.git", |
| 1674 | - "reference": "d1a58d8c64f9075960665dc5347f5906ecb063cf" | 1674 | + "reference": "bb0eba84639a99bff6c8bc9e803bd8ac3ab66297" |
| 1675 | }, | 1675 | }, |
| 1676 | "dist": { | 1676 | "dist": { |
| 1677 | "type": "zip", | 1677 | "type": "zip", |
| 1678 | - "url": "https://api.github.com/repos/yiisoft/yii2-gii/zipball/d1a58d8c64f9075960665dc5347f5906ecb063cf", | ||
| 1679 | - "reference": "d1a58d8c64f9075960665dc5347f5906ecb063cf", | 1678 | + "url": "https://api.github.com/repos/yiisoft/yii2-gii/zipball/bb0eba84639a99bff6c8bc9e803bd8ac3ab66297", |
| 1679 | + "reference": "bb0eba84639a99bff6c8bc9e803bd8ac3ab66297", | ||
| 1680 | "shasum": "" | 1680 | "shasum": "" |
| 1681 | }, | 1681 | }, |
| 1682 | "require": { | 1682 | "require": { |
| @@ -1716,7 +1716,7 @@ | @@ -1716,7 +1716,7 @@ | ||
| 1716 | "gii", | 1716 | "gii", |
| 1717 | "yii2" | 1717 | "yii2" |
| 1718 | ], | 1718 | ], |
| 1719 | - "time": "2016-01-15 17:12:14" | 1719 | + "time": "2016-02-02 07:11:51" |
| 1720 | } | 1720 | } |
| 1721 | ], | 1721 | ], |
| 1722 | "aliases": [], | 1722 | "aliases": [], |
console/migrations/m160202_090343_user_add_fields.php
100644 → 100755
console/migrations/m160202_094943_user_info_country_city.php
100644 → 100755
console/migrations/m160203_133308_add_field_specialization.php
100644 → 100755
console/migrations/m160203_140144_add_field_user_info.php
100644 → 100755
frontend/assets/AppAsset.php
| @@ -20,7 +20,7 @@ class AppAsset extends AssetBundle | @@ -20,7 +20,7 @@ class AppAsset extends AssetBundle | ||
| 20 | public $css = [ | 20 | public $css = [ |
| 21 | 'css/style.css', | 21 | 'css/style.css', |
| 22 | '/admin/css/flags32.css', | 22 | '/admin/css/flags32.css', |
| 23 | - //'https://fonts.googleapis.com/css?family=Roboto:400,700&subset=cyrillic,latin', | 23 | + 'https://fonts.googleapis.com/css?family=Roboto:400,700&subset=cyrillic,latin', |
| 24 | ]; | 24 | ]; |
| 25 | public $js = [ | 25 | public $js = [ |
| 26 | '/js/script.js', | 26 | '/js/script.js', |
frontend/controllers/CompanyInfoController.php
100644 → 100755
| @@ -20,7 +20,7 @@ | @@ -20,7 +20,7 @@ | ||
| 20 | <?php | 20 | <?php |
| 21 | $form = ActiveForm::begin (); | 21 | $form = ActiveForm::begin (); |
| 22 | echo $form->field ($user, 'isPerformer', ['template' => "{label}:\n{input}\n{hint}\n{error}"]) | 22 | echo $form->field ($user, 'isPerformer', ['template' => "{label}:\n{input}\n{hint}\n{error}"]) |
| 23 | - ->label ('Я - исполнитель') | 23 | + ->label ('<span1></span>Я - исполнитель') |
| 24 | ->hint ('Отображается если указать специализации услуг в личном кабинете.') | 24 | ->hint ('Отображается если указать специализации услуг в личном кабинете.') |
| 25 | ->checkbox ([], false); | 25 | ->checkbox ([], false); |
| 26 | echo $form->field ($user, 'isCustomer', ['template' => "{label}:\n{input}\n{hint}\n{error}"]) | 26 | echo $form->field ($user, 'isCustomer', ['template' => "{label}:\n{input}\n{hint}\n{error}"]) |
frontend/views/layouts/admin.php
| @@ -9,18 +9,6 @@ $this->beginContent('@app/views/layouts/main.php'); | @@ -9,18 +9,6 @@ $this->beginContent('@app/views/layouts/main.php'); | ||
| 9 | ?> | 9 | ?> |
| 10 | <div class="wrap"> | 10 | <div class="wrap"> |
| 11 | <div class="container"> | 11 | <div class="container"> |
| 12 | - <div class="left_block"> | ||
| 13 | - <?php | ||
| 14 | - echo Menu::widget([ | ||
| 15 | - 'options' => ['class' => 'nav nav-pills nav-stacked'], | ||
| 16 | - 'items' => [ | ||
| 17 | - ['label' => 'Кабинет', 'url' => ['accounts/cabinet']], | ||
| 18 | - | ||
| 19 | - ['label' => 'Выход', 'url' => ['/site/logout']], | ||
| 20 | - ], | ||
| 21 | - ]); | ||
| 22 | - ?> | ||
| 23 | - </div> | ||
| 24 | <div class="right_block"> | 12 | <div class="right_block"> |
| 25 | <?= Breadcrumbs::widget([ | 13 | <?= Breadcrumbs::widget([ |
| 26 | 'links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : [], | 14 | 'links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : [], |
| @@ -71,6 +59,10 @@ $this->beginContent('@app/views/layouts/main.php'); | @@ -71,6 +59,10 @@ $this->beginContent('@app/views/layouts/main.php'); | ||
| 71 | 'label' => 'Галерея', | 59 | 'label' => 'Галерея', |
| 72 | 'url' => ['accounts/gallery'], | 60 | 'url' => ['accounts/gallery'], |
| 73 | ], | 61 | ], |
| 62 | + [ | ||
| 63 | + 'label' => 'Выход', | ||
| 64 | + 'url' => ['/site/logout'] | ||
| 65 | + ], | ||
| 74 | ], | 66 | ], |
| 75 | ]); | 67 | ]); |
| 76 | ?> | 68 | ?> |
frontend/views/layouts/performer.php
| @@ -3,7 +3,7 @@ | @@ -3,7 +3,7 @@ | ||
| 3 | use yii\widgets\Breadcrumbs; | 3 | use yii\widgets\Breadcrumbs; |
| 4 | use yii\widgets\Menu; | 4 | use yii\widgets\Menu; |
| 5 | 5 | ||
| 6 | -\frontend\assets\AdminAsset::register($this); | 6 | +\frontend\assets\AppAsset::register($this); |
| 7 | /* @var $content string */ | 7 | /* @var $content string */ |
| 8 | $this->beginContent('@app/views/layouts/main.php'); | 8 | $this->beginContent('@app/views/layouts/main.php'); |
| 9 | ?> | 9 | ?> |