Commit 110087c289881d0aaeef39e792fcb588a35e2e64
1 parent
225c5168
test
Showing
6 changed files
with
280 additions
and
426 deletions
Show diff stats
common/widgets/views/education_field.php
| ... | ... | @@ -59,11 +59,11 @@ |
| 59 | 59 | .parent ('fieldset'); |
| 60 | 60 | var sub_block = '<div class="form-group" >' + |
| 61 | 61 | '<div class="input-blocks">'+ |
| 62 | - '<input id="edu-name-' + ++start_label_<?=$this->context->id?> +'" type="text" placeholder="Название" class="form-control custom-input-2" value="" name="Fields[education][' + start_i_<?=$this->context->id?>++ + '][0][name]" />' + | |
| 62 | + '<input id="edu-name-' + ++start_label_<?=$this->context->id?> +'" type="text" placeholder="Название" class="form-control custom-input-2" value="" name="Fields[education][' + start_i_<?=$this->context->id?>++ + '][0][name]" required />' + | |
| 63 | 63 | '<label for="edu-name-' + start_label_<?=$this->context->id?> +'">Название ВУЗа</label>'+ |
| 64 | 64 | '</div>'+ |
| 65 | 65 | '<div class="input-blocks">'+ |
| 66 | - '<input id="edu-to-' + ++start_label_<?=$this->context->id?> +'" type="number" class="form-control custom-input-2 custom-input-2-date" value="" name="Fields[education][' + start_i_<?=$this->context->id?>++ + '][1][year_from]" min="1950" max="<?=date('Y')?>" />' + | |
| 66 | + '<input id="edu-to-' + ++start_label_<?=$this->context->id?> +'" type="number" class="form-control custom-input-2 custom-input-2-date" value="" name="Fields[education][' + start_i_<?=$this->context->id?>++ + '][1][year_from]" min="1950" max="<?=date('Y')?>" required />' + | |
| 67 | 67 | '<label for="edu-to-' + start_label_<?=$this->context->id?> +'">год начала</label>'+ |
| 68 | 68 | '</div>'+ |
| 69 | 69 | '<div class="input-blocks">'+ | ... | ... |
composer.lock
| ... | ... | @@ -363,12 +363,12 @@ |
| 363 | 363 | "source": { |
| 364 | 364 | "type": "git", |
| 365 | 365 | "url": "https://github.com/cebe/markdown.git", |
| 366 | - "reference": "e4499350d8a94c4c693a7e784295eff7a717ae67" | |
| 366 | + "reference": "e2a490ceec590bf5bfd1b43bd424fb9dceceb7c5" | |
| 367 | 367 | }, |
| 368 | 368 | "dist": { |
| 369 | 369 | "type": "zip", |
| 370 | - "url": "https://api.github.com/repos/cebe/markdown/zipball/e4499350d8a94c4c693a7e784295eff7a717ae67", | |
| 371 | - "reference": "e4499350d8a94c4c693a7e784295eff7a717ae67", | |
| 370 | + "url": "https://api.github.com/repos/cebe/markdown/zipball/e2a490ceec590bf5bfd1b43bd424fb9dceceb7c5", | |
| 371 | + "reference": "e2a490ceec590bf5bfd1b43bd424fb9dceceb7c5", | |
| 372 | 372 | "shasum": "" |
| 373 | 373 | }, |
| 374 | 374 | "require": { |
| ... | ... | @@ -415,7 +415,7 @@ |
| 415 | 415 | "markdown", |
| 416 | 416 | "markdown-extra" |
| 417 | 417 | ], |
| 418 | - "time": "2016-02-09 22:09:46" | |
| 418 | + "time": "2016-03-18 13:28:11" | |
| 419 | 419 | }, |
| 420 | 420 | { |
| 421 | 421 | "name": "cebe/yii2-gravatar", |
| ... | ... | @@ -503,16 +503,16 @@ |
| 503 | 503 | }, |
| 504 | 504 | { |
| 505 | 505 | "name": "dmstr/yii2-adminlte-asset", |
| 506 | - "version": "2.2.4", | |
| 506 | + "version": "2.3.0", | |
| 507 | 507 | "source": { |
| 508 | 508 | "type": "git", |
| 509 | 509 | "url": "https://github.com/dmstr/yii2-adminlte-asset.git", |
| 510 | - "reference": "c842a15ceef4e903f70ac927ec3246e6d53e1148" | |
| 510 | + "reference": "73eca05cf04d70f169a88b430d2c03c3b54d623a" | |
| 511 | 511 | }, |
| 512 | 512 | "dist": { |
| 513 | 513 | "type": "zip", |
| 514 | - "url": "https://api.github.com/repos/dmstr/yii2-adminlte-asset/zipball/c842a15ceef4e903f70ac927ec3246e6d53e1148", | |
| 515 | - "reference": "c842a15ceef4e903f70ac927ec3246e6d53e1148", | |
| 514 | + "url": "https://api.github.com/repos/dmstr/yii2-adminlte-asset/zipball/73eca05cf04d70f169a88b430d2c03c3b54d623a", | |
| 515 | + "reference": "73eca05cf04d70f169a88b430d2c03c3b54d623a", | |
| 516 | 516 | "shasum": "" |
| 517 | 517 | }, |
| 518 | 518 | "require": { |
| ... | ... | @@ -553,20 +553,20 @@ |
| 553 | 553 | "extension", |
| 554 | 554 | "yii2" |
| 555 | 555 | ], |
| 556 | - "time": "2015-11-06 10:35:36" | |
| 556 | + "time": "2016-03-23 04:18:15" | |
| 557 | 557 | }, |
| 558 | 558 | { |
| 559 | 559 | "name": "ezyang/htmlpurifier", |
| 560 | - "version": "v4.6.0", | |
| 560 | + "version": "v4.7.0", | |
| 561 | 561 | "source": { |
| 562 | 562 | "type": "git", |
| 563 | 563 | "url": "https://github.com/ezyang/htmlpurifier.git", |
| 564 | - "reference": "6f389f0f25b90d0b495308efcfa073981177f0fd" | |
| 564 | + "reference": "ae1828d955112356f7677c465f94f7deb7d27a40" | |
| 565 | 565 | }, |
| 566 | 566 | "dist": { |
| 567 | 567 | "type": "zip", |
| 568 | - "url": "https://api.github.com/repos/ezyang/htmlpurifier/zipball/6f389f0f25b90d0b495308efcfa073981177f0fd", | |
| 569 | - "reference": "6f389f0f25b90d0b495308efcfa073981177f0fd", | |
| 568 | + "url": "https://api.github.com/repos/ezyang/htmlpurifier/zipball/ae1828d955112356f7677c465f94f7deb7d27a40", | |
| 569 | + "reference": "ae1828d955112356f7677c465f94f7deb7d27a40", | |
| 570 | 570 | "shasum": "" |
| 571 | 571 | }, |
| 572 | 572 | "require": { |
| ... | ... | @@ -597,7 +597,7 @@ |
| 597 | 597 | "keywords": [ |
| 598 | 598 | "html" |
| 599 | 599 | ], |
| 600 | - "time": "2013-11-30 08:25:19" | |
| 600 | + "time": "2015-08-05 01:03:42" | |
| 601 | 601 | }, |
| 602 | 602 | { |
| 603 | 603 | "name": "imagine/imagine", |
| ... | ... | @@ -658,22 +658,27 @@ |
| 658 | 658 | }, |
| 659 | 659 | { |
| 660 | 660 | "name": "kartik-v/yii2-krajee-base", |
| 661 | - "version": "1.8.2", | |
| 661 | + "version": "dev-master", | |
| 662 | 662 | "source": { |
| 663 | 663 | "type": "git", |
| 664 | 664 | "url": "https://github.com/kartik-v/yii2-krajee-base.git", |
| 665 | - "reference": "0c274e31e4392cbafc5fe158eae81738794e02ce" | |
| 665 | + "reference": "3e491e51ed742663b239cd6e0b7f76d403bed7e1" | |
| 666 | 666 | }, |
| 667 | 667 | "dist": { |
| 668 | 668 | "type": "zip", |
| 669 | - "url": "https://api.github.com/repos/kartik-v/yii2-krajee-base/zipball/0c274e31e4392cbafc5fe158eae81738794e02ce", | |
| 670 | - "reference": "0c274e31e4392cbafc5fe158eae81738794e02ce", | |
| 669 | + "url": "https://api.github.com/repos/kartik-v/yii2-krajee-base/zipball/3e491e51ed742663b239cd6e0b7f76d403bed7e1", | |
| 670 | + "reference": "3e491e51ed742663b239cd6e0b7f76d403bed7e1", | |
| 671 | 671 | "shasum": "" |
| 672 | 672 | }, |
| 673 | 673 | "require": { |
| 674 | 674 | "yiisoft/yii2-bootstrap": "@dev" |
| 675 | 675 | }, |
| 676 | 676 | "type": "yii2-extension", |
| 677 | + "extra": { | |
| 678 | + "branch-alias": { | |
| 679 | + "dev-master": "1.8.x-dev" | |
| 680 | + } | |
| 681 | + }, | |
| 677 | 682 | "autoload": { |
| 678 | 683 | "psr-4": { |
| 679 | 684 | "kartik\\base\\": "" |
| ... | ... | @@ -700,7 +705,7 @@ |
| 700 | 705 | "widget", |
| 701 | 706 | "yii2" |
| 702 | 707 | ], |
| 703 | - "time": "2016-01-10 12:26:29" | |
| 708 | + "time": "2016-03-03 12:24:13" | |
| 704 | 709 | }, |
| 705 | 710 | { |
| 706 | 711 | "name": "kartik-v/yii2-widget-colorinput", |
| ... | ... | @@ -762,12 +767,12 @@ |
| 762 | 767 | "source": { |
| 763 | 768 | "type": "git", |
| 764 | 769 | "url": "https://github.com/kartik-v/yii2-widget-select2.git", |
| 765 | - "reference": "4d03239c1e28ef8d3b96ab7fe360f5cbda34fb69" | |
| 770 | + "reference": "cb2a5992cb96bd2939e30ec1c76eba418d6a30af" | |
| 766 | 771 | }, |
| 767 | 772 | "dist": { |
| 768 | 773 | "type": "zip", |
| 769 | - "url": "https://api.github.com/repos/kartik-v/yii2-widget-select2/zipball/4d03239c1e28ef8d3b96ab7fe360f5cbda34fb69", | |
| 770 | - "reference": "4d03239c1e28ef8d3b96ab7fe360f5cbda34fb69", | |
| 774 | + "url": "https://api.github.com/repos/kartik-v/yii2-widget-select2/zipball/cb2a5992cb96bd2939e30ec1c76eba418d6a30af", | |
| 775 | + "reference": "cb2a5992cb96bd2939e30ec1c76eba418d6a30af", | |
| 771 | 776 | "shasum": "" |
| 772 | 777 | }, |
| 773 | 778 | "require": { |
| ... | ... | @@ -807,7 +812,7 @@ |
| 807 | 812 | "widget", |
| 808 | 813 | "yii2" |
| 809 | 814 | ], |
| 810 | - "time": "2016-02-17 11:49:30" | |
| 815 | + "time": "2016-03-10 11:33:59" | |
| 811 | 816 | }, |
| 812 | 817 | { |
| 813 | 818 | "name": "lusitanian/oauth", |
| ... | ... | @@ -1073,16 +1078,16 @@ |
| 1073 | 1078 | }, |
| 1074 | 1079 | { |
| 1075 | 1080 | "name": "rmrevin/yii2-comments", |
| 1076 | - "version": "1.4.0", | |
| 1081 | + "version": "1.4.2", | |
| 1077 | 1082 | "source": { |
| 1078 | 1083 | "type": "git", |
| 1079 | 1084 | "url": "https://github.com/rmrevin/yii2-comments.git", |
| 1080 | - "reference": "9aaf46b0a5c2c3d71b9dafd669ef78810729951f" | |
| 1085 | + "reference": "c68ddf276fe24ece0173781a8f7391a2cf7e6a12" | |
| 1081 | 1086 | }, |
| 1082 | 1087 | "dist": { |
| 1083 | 1088 | "type": "zip", |
| 1084 | - "url": "https://api.github.com/repos/rmrevin/yii2-comments/zipball/9aaf46b0a5c2c3d71b9dafd669ef78810729951f", | |
| 1085 | - "reference": "9aaf46b0a5c2c3d71b9dafd669ef78810729951f", | |
| 1089 | + "url": "https://api.github.com/repos/rmrevin/yii2-comments/zipball/c68ddf276fe24ece0173781a8f7391a2cf7e6a12", | |
| 1090 | + "reference": "c68ddf276fe24ece0173781a8f7391a2cf7e6a12", | |
| 1086 | 1091 | "shasum": "" |
| 1087 | 1092 | }, |
| 1088 | 1093 | "require": { |
| ... | ... | @@ -1120,7 +1125,7 @@ |
| 1120 | 1125 | "widget", |
| 1121 | 1126 | "yii" |
| 1122 | 1127 | ], |
| 1123 | - "time": "2015-10-05 17:48:21" | |
| 1128 | + "time": "2016-03-01 13:18:41" | |
| 1124 | 1129 | }, |
| 1125 | 1130 | { |
| 1126 | 1131 | "name": "rmrevin/yii2-fontawesome", |
| ... | ... | @@ -1233,12 +1238,12 @@ |
| 1233 | 1238 | "source": { |
| 1234 | 1239 | "type": "git", |
| 1235 | 1240 | "url": "https://github.com/yiisoft/yii2-framework.git", |
| 1236 | - "reference": "c47257db05de10b0924b1e47c855212b457c69a3" | |
| 1241 | + "reference": "18c78d7d1c81cbb5722a8afb5940bc82eb45faab" | |
| 1237 | 1242 | }, |
| 1238 | 1243 | "dist": { |
| 1239 | 1244 | "type": "zip", |
| 1240 | - "url": "https://api.github.com/repos/yiisoft/yii2-framework/zipball/c47257db05de10b0924b1e47c855212b457c69a3", | |
| 1241 | - "reference": "c47257db05de10b0924b1e47c855212b457c69a3", | |
| 1245 | + "url": "https://api.github.com/repos/yiisoft/yii2-framework/zipball/18c78d7d1c81cbb5722a8afb5940bc82eb45faab", | |
| 1246 | + "reference": "18c78d7d1c81cbb5722a8afb5940bc82eb45faab", | |
| 1242 | 1247 | "shasum": "" |
| 1243 | 1248 | }, |
| 1244 | 1249 | "require": { |
| ... | ... | @@ -1319,7 +1324,7 @@ |
| 1319 | 1324 | "framework", |
| 1320 | 1325 | "yii2" |
| 1321 | 1326 | ], |
| 1322 | - "time": "2016-02-21 17:08:31" | |
| 1327 | + "time": "2016-03-23 07:31:27" | |
| 1323 | 1328 | }, |
| 1324 | 1329 | { |
| 1325 | 1330 | "name": "yiisoft/yii2-bootstrap", |
| ... | ... | @@ -1327,12 +1332,12 @@ |
| 1327 | 1332 | "source": { |
| 1328 | 1333 | "type": "git", |
| 1329 | 1334 | "url": "https://github.com/yiisoft/yii2-bootstrap.git", |
| 1330 | - "reference": "ef941bc83ea63326e44769b922476dc1035ea551" | |
| 1335 | + "reference": "e64170ffa5678be6cb8c3decf92feac8142aa523" | |
| 1331 | 1336 | }, |
| 1332 | 1337 | "dist": { |
| 1333 | 1338 | "type": "zip", |
| 1334 | - "url": "https://api.github.com/repos/yiisoft/yii2-bootstrap/zipball/ef941bc83ea63326e44769b922476dc1035ea551", | |
| 1335 | - "reference": "ef941bc83ea63326e44769b922476dc1035ea551", | |
| 1339 | + "url": "https://api.github.com/repos/yiisoft/yii2-bootstrap/zipball/e64170ffa5678be6cb8c3decf92feac8142aa523", | |
| 1340 | + "reference": "e64170ffa5678be6cb8c3decf92feac8142aa523", | |
| 1336 | 1341 | "shasum": "" |
| 1337 | 1342 | }, |
| 1338 | 1343 | "require": { |
| ... | ... | @@ -1369,7 +1374,7 @@ |
| 1369 | 1374 | "bootstrap", |
| 1370 | 1375 | "yii2" |
| 1371 | 1376 | ], |
| 1372 | - "time": "2016-01-24 17:03:09" | |
| 1377 | + "time": "2016-03-21 19:11:20" | |
| 1373 | 1378 | }, |
| 1374 | 1379 | { |
| 1375 | 1380 | "name": "yiisoft/yii2-composer", |
| ... | ... | @@ -1377,12 +1382,12 @@ |
| 1377 | 1382 | "source": { |
| 1378 | 1383 | "type": "git", |
| 1379 | 1384 | "url": "https://github.com/yiisoft/yii2-composer.git", |
| 1380 | - "reference": "d33d1046a5951f2f7823fe343f28ddc58b3421a4" | |
| 1385 | + "reference": "348122de0b2c2e343b579f93fcda1da78cab4912" | |
| 1381 | 1386 | }, |
| 1382 | 1387 | "dist": { |
| 1383 | 1388 | "type": "zip", |
| 1384 | - "url": "https://api.github.com/repos/yiisoft/yii2-composer/zipball/d33d1046a5951f2f7823fe343f28ddc58b3421a4", | |
| 1385 | - "reference": "d33d1046a5951f2f7823fe343f28ddc58b3421a4", | |
| 1389 | + "url": "https://api.github.com/repos/yiisoft/yii2-composer/zipball/348122de0b2c2e343b579f93fcda1da78cab4912", | |
| 1390 | + "reference": "348122de0b2c2e343b579f93fcda1da78cab4912", | |
| 1386 | 1391 | "shasum": "" |
| 1387 | 1392 | }, |
| 1388 | 1393 | "require": { |
| ... | ... | @@ -1416,7 +1421,7 @@ |
| 1416 | 1421 | "extension installer", |
| 1417 | 1422 | "yii2" |
| 1418 | 1423 | ], |
| 1419 | - "time": "2016-02-06 01:03:32" | |
| 1424 | + "time": "2016-03-21 19:11:44" | |
| 1420 | 1425 | }, |
| 1421 | 1426 | { |
| 1422 | 1427 | "name": "yiisoft/yii2-imagine", |
| ... | ... | @@ -1424,12 +1429,12 @@ |
| 1424 | 1429 | "source": { |
| 1425 | 1430 | "type": "git", |
| 1426 | 1431 | "url": "https://github.com/yiisoft/yii2-imagine.git", |
| 1427 | - "reference": "d87e6a0d1adfd6fa5ef49c18228b2fc9bca04299" | |
| 1432 | + "reference": "a6c34ef6b69fb4670ba987ce4b9cfdb2131a8b99" | |
| 1428 | 1433 | }, |
| 1429 | 1434 | "dist": { |
| 1430 | 1435 | "type": "zip", |
| 1431 | - "url": "https://api.github.com/repos/yiisoft/yii2-imagine/zipball/d87e6a0d1adfd6fa5ef49c18228b2fc9bca04299", | |
| 1432 | - "reference": "d87e6a0d1adfd6fa5ef49c18228b2fc9bca04299", | |
| 1436 | + "url": "https://api.github.com/repos/yiisoft/yii2-imagine/zipball/a6c34ef6b69fb4670ba987ce4b9cfdb2131a8b99", | |
| 1437 | + "reference": "a6c34ef6b69fb4670ba987ce4b9cfdb2131a8b99", | |
| 1433 | 1438 | "shasum": "" |
| 1434 | 1439 | }, |
| 1435 | 1440 | "require": { |
| ... | ... | @@ -1464,7 +1469,7 @@ |
| 1464 | 1469 | "imagine", |
| 1465 | 1470 | "yii2" |
| 1466 | 1471 | ], |
| 1467 | - "time": "2016-02-21 23:09:41" | |
| 1472 | + "time": "2016-03-21 19:13:31" | |
| 1468 | 1473 | }, |
| 1469 | 1474 | { |
| 1470 | 1475 | "name": "yiisoft/yii2-jui", |
| ... | ... | @@ -1472,12 +1477,12 @@ |
| 1472 | 1477 | "source": { |
| 1473 | 1478 | "type": "git", |
| 1474 | 1479 | "url": "https://github.com/yiisoft/yii2-jui.git", |
| 1475 | - "reference": "1425ab29929dd195f468d3c4eb340ab509f28b83" | |
| 1480 | + "reference": "226ffd897b26965a357e187cdf67f6c2e43e3139" | |
| 1476 | 1481 | }, |
| 1477 | 1482 | "dist": { |
| 1478 | 1483 | "type": "zip", |
| 1479 | - "url": "https://api.github.com/repos/yiisoft/yii2-jui/zipball/1425ab29929dd195f468d3c4eb340ab509f28b83", | |
| 1480 | - "reference": "1425ab29929dd195f468d3c4eb340ab509f28b83", | |
| 1484 | + "url": "https://api.github.com/repos/yiisoft/yii2-jui/zipball/226ffd897b26965a357e187cdf67f6c2e43e3139", | |
| 1485 | + "reference": "226ffd897b26965a357e187cdf67f6c2e43e3139", | |
| 1481 | 1486 | "shasum": "" |
| 1482 | 1487 | }, |
| 1483 | 1488 | "require": { |
| ... | ... | @@ -1514,7 +1519,7 @@ |
| 1514 | 1519 | "jQuery UI", |
| 1515 | 1520 | "yii2" |
| 1516 | 1521 | ], |
| 1517 | - "time": "2015-12-24 06:23:53" | |
| 1522 | + "time": "2016-03-21 19:14:08" | |
| 1518 | 1523 | }, |
| 1519 | 1524 | { |
| 1520 | 1525 | "name": "yiisoft/yii2-swiftmailer", |
| ... | ... | @@ -1522,12 +1527,12 @@ |
| 1522 | 1527 | "source": { |
| 1523 | 1528 | "type": "git", |
| 1524 | 1529 | "url": "https://github.com/yiisoft/yii2-swiftmailer.git", |
| 1525 | - "reference": "2cca1bb86444a6438b0720f8c60120a400982366" | |
| 1530 | + "reference": "20775fef1047cd927908270a8d7983580304eb57" | |
| 1526 | 1531 | }, |
| 1527 | 1532 | "dist": { |
| 1528 | 1533 | "type": "zip", |
| 1529 | - "url": "https://api.github.com/repos/yiisoft/yii2-swiftmailer/zipball/2cca1bb86444a6438b0720f8c60120a400982366", | |
| 1530 | - "reference": "2cca1bb86444a6438b0720f8c60120a400982366", | |
| 1534 | + "url": "https://api.github.com/repos/yiisoft/yii2-swiftmailer/zipball/20775fef1047cd927908270a8d7983580304eb57", | |
| 1535 | + "reference": "20775fef1047cd927908270a8d7983580304eb57", | |
| 1531 | 1536 | "shasum": "" |
| 1532 | 1537 | }, |
| 1533 | 1538 | "require": { |
| ... | ... | @@ -1564,7 +1569,7 @@ |
| 1564 | 1569 | "swiftmailer", |
| 1565 | 1570 | "yii2" |
| 1566 | 1571 | ], |
| 1567 | - "time": "2015-12-07 11:40:31" | |
| 1572 | + "time": "2016-03-21 19:16:09" | |
| 1568 | 1573 | } |
| 1569 | 1574 | ], |
| 1570 | 1575 | "packages-dev": [ |
| ... | ... | @@ -1601,12 +1606,12 @@ |
| 1601 | 1606 | "source": { |
| 1602 | 1607 | "type": "git", |
| 1603 | 1608 | "url": "https://github.com/fzaninotto/Faker.git", |
| 1604 | - "reference": "2585edbef8b0e7a44c695217c35b16720203d8ee" | |
| 1609 | + "reference": "bb09cf8982f89b50bb8bc6c0f9e451353ad17065" | |
| 1605 | 1610 | }, |
| 1606 | 1611 | "dist": { |
| 1607 | 1612 | "type": "zip", |
| 1608 | - "url": "https://api.github.com/repos/fzaninotto/Faker/zipball/2585edbef8b0e7a44c695217c35b16720203d8ee", | |
| 1609 | - "reference": "2585edbef8b0e7a44c695217c35b16720203d8ee", | |
| 1613 | + "url": "https://api.github.com/repos/fzaninotto/Faker/zipball/bb09cf8982f89b50bb8bc6c0f9e451353ad17065", | |
| 1614 | + "reference": "bb09cf8982f89b50bb8bc6c0f9e451353ad17065", | |
| 1610 | 1615 | "shasum": "" |
| 1611 | 1616 | }, |
| 1612 | 1617 | "require": { |
| ... | ... | @@ -1643,7 +1648,7 @@ |
| 1643 | 1648 | "faker", |
| 1644 | 1649 | "fixtures" |
| 1645 | 1650 | ], |
| 1646 | - "time": "2016-02-23 12:35:04" | |
| 1651 | + "time": "2016-03-22 20:16:49" | |
| 1647 | 1652 | }, |
| 1648 | 1653 | { |
| 1649 | 1654 | "name": "phpspec/php-diff", |
| ... | ... | @@ -1685,12 +1690,12 @@ |
| 1685 | 1690 | "source": { |
| 1686 | 1691 | "type": "git", |
| 1687 | 1692 | "url": "https://github.com/yiisoft/yii2-codeception.git", |
| 1688 | - "reference": "ee239c244fd011f11c8827f97ebe7600d03f1841" | |
| 1693 | + "reference": "e01b3c46917b3f00c42f6a4aabf612cc36d792e6" | |
| 1689 | 1694 | }, |
| 1690 | 1695 | "dist": { |
| 1691 | 1696 | "type": "zip", |
| 1692 | - "url": "https://api.github.com/repos/yiisoft/yii2-codeception/zipball/ee239c244fd011f11c8827f97ebe7600d03f1841", | |
| 1693 | - "reference": "ee239c244fd011f11c8827f97ebe7600d03f1841", | |
| 1697 | + "url": "https://api.github.com/repos/yiisoft/yii2-codeception/zipball/e01b3c46917b3f00c42f6a4aabf612cc36d792e6", | |
| 1698 | + "reference": "e01b3c46917b3f00c42f6a4aabf612cc36d792e6", | |
| 1694 | 1699 | "shasum": "" |
| 1695 | 1700 | }, |
| 1696 | 1701 | "require": { |
| ... | ... | @@ -1722,7 +1727,7 @@ |
| 1722 | 1727 | "codeception", |
| 1723 | 1728 | "yii2" |
| 1724 | 1729 | ], |
| 1725 | - "time": "2015-11-20 08:52:21" | |
| 1730 | + "time": "2016-03-21 19:11:26" | |
| 1726 | 1731 | }, |
| 1727 | 1732 | { |
| 1728 | 1733 | "name": "yiisoft/yii2-debug", |
| ... | ... | @@ -1730,12 +1735,12 @@ |
| 1730 | 1735 | "source": { |
| 1731 | 1736 | "type": "git", |
| 1732 | 1737 | "url": "https://github.com/yiisoft/yii2-debug.git", |
| 1733 | - "reference": "e30ded9067f595b5e6d3536ec1365353b826b300" | |
| 1738 | + "reference": "081795536b31d29106b0d1de0cb3aefa3e05e995" | |
| 1734 | 1739 | }, |
| 1735 | 1740 | "dist": { |
| 1736 | 1741 | "type": "zip", |
| 1737 | - "url": "https://api.github.com/repos/yiisoft/yii2-debug/zipball/e30ded9067f595b5e6d3536ec1365353b826b300", | |
| 1738 | - "reference": "e30ded9067f595b5e6d3536ec1365353b826b300", | |
| 1742 | + "url": "https://api.github.com/repos/yiisoft/yii2-debug/zipball/081795536b31d29106b0d1de0cb3aefa3e05e995", | |
| 1743 | + "reference": "081795536b31d29106b0d1de0cb3aefa3e05e995", | |
| 1739 | 1744 | "shasum": "" |
| 1740 | 1745 | }, |
| 1741 | 1746 | "require": { |
| ... | ... | @@ -1769,7 +1774,7 @@ |
| 1769 | 1774 | "debugger", |
| 1770 | 1775 | "yii2" |
| 1771 | 1776 | ], |
| 1772 | - "time": "2016-02-16 08:23:57" | |
| 1777 | + "time": "2016-03-21 19:12:39" | |
| 1773 | 1778 | }, |
| 1774 | 1779 | { |
| 1775 | 1780 | "name": "yiisoft/yii2-faker", |
| ... | ... | @@ -1777,12 +1782,12 @@ |
| 1777 | 1782 | "source": { |
| 1778 | 1783 | "type": "git", |
| 1779 | 1784 | "url": "https://github.com/yiisoft/yii2-faker.git", |
| 1780 | - "reference": "186c77214e0a4b75f10380b4e6e5f82788922cb7" | |
| 1785 | + "reference": "a8daa97749e7154d91676405a1c59ed81e1ca999" | |
| 1781 | 1786 | }, |
| 1782 | 1787 | "dist": { |
| 1783 | 1788 | "type": "zip", |
| 1784 | - "url": "https://api.github.com/repos/yiisoft/yii2-faker/zipball/186c77214e0a4b75f10380b4e6e5f82788922cb7", | |
| 1785 | - "reference": "186c77214e0a4b75f10380b4e6e5f82788922cb7", | |
| 1789 | + "url": "https://api.github.com/repos/yiisoft/yii2-faker/zipball/a8daa97749e7154d91676405a1c59ed81e1ca999", | |
| 1790 | + "reference": "a8daa97749e7154d91676405a1c59ed81e1ca999", | |
| 1786 | 1791 | "shasum": "" |
| 1787 | 1792 | }, |
| 1788 | 1793 | "require": { |
| ... | ... | @@ -1816,7 +1821,7 @@ |
| 1816 | 1821 | "faker", |
| 1817 | 1822 | "yii2" |
| 1818 | 1823 | ], |
| 1819 | - "time": "2015-12-18 01:52:12" | |
| 1824 | + "time": "2016-03-21 19:13:03" | |
| 1820 | 1825 | }, |
| 1821 | 1826 | { |
| 1822 | 1827 | "name": "yiisoft/yii2-gii", |
| ... | ... | @@ -1824,12 +1829,12 @@ |
| 1824 | 1829 | "source": { |
| 1825 | 1830 | "type": "git", |
| 1826 | 1831 | "url": "https://github.com/yiisoft/yii2-gii.git", |
| 1827 | - "reference": "ce42838abcbef076ebaf46147671d518ae69d028" | |
| 1832 | + "reference": "989d6c52c92e51f0d562729c329ee1012191cba2" | |
| 1828 | 1833 | }, |
| 1829 | 1834 | "dist": { |
| 1830 | 1835 | "type": "zip", |
| 1831 | - "url": "https://api.github.com/repos/yiisoft/yii2-gii/zipball/ce42838abcbef076ebaf46147671d518ae69d028", | |
| 1832 | - "reference": "ce42838abcbef076ebaf46147671d518ae69d028", | |
| 1836 | + "url": "https://api.github.com/repos/yiisoft/yii2-gii/zipball/989d6c52c92e51f0d562729c329ee1012191cba2", | |
| 1837 | + "reference": "989d6c52c92e51f0d562729c329ee1012191cba2", | |
| 1833 | 1838 | "shasum": "" |
| 1834 | 1839 | }, |
| 1835 | 1840 | "require": { |
| ... | ... | @@ -1869,7 +1874,7 @@ |
| 1869 | 1874 | "gii", |
| 1870 | 1875 | "yii2" |
| 1871 | 1876 | ], |
| 1872 | - "time": "2016-02-21 20:39:29" | |
| 1877 | + "time": "2016-03-21 19:13:26" | |
| 1873 | 1878 | } |
| 1874 | 1879 | ], |
| 1875 | 1880 | "aliases": [], | ... | ... |
frontend/controllers/CompanyController.php
| ... | ... | @@ -87,7 +87,9 @@ |
| 87 | 87 | ]); |
| 88 | 88 | |
| 89 | 89 | $commentProvider = new ActiveDataProvider([ |
| 90 | - 'query' => $company->getComments(), | |
| 90 | + 'query' => $company->getComments() | |
| 91 | + ->with('rating') | |
| 92 | + ->with('author'), | |
| 91 | 93 | 'sort' => new Sort([ |
| 92 | 94 | 'defaultOrder' => [ |
| 93 | 95 | 'date_add' => SORT_DESC, | ... | ... |
| 1 | +<?php | |
| 2 | + /** | |
| 3 | + * @var Blog $model | |
| 4 | + */ | |
| 5 | + use common\models\Blog; | |
| 6 | + use yii\helpers\Html; | |
| 7 | + | |
| 8 | +?> | |
| 9 | +<?php | |
| 10 | + echo Html::a(Html::img($model->cover), [ | |
| 11 | + 'company/blog-view', | |
| 12 | + 'company_id' => $model->user_id, | |
| 13 | + 'link' => $model->link, | |
| 14 | + ]); | |
| 15 | +?> | |
| 16 | +<div class="min-post-txt"> | |
| 17 | + <div class="blog-post-icons-wr style"> | |
| 18 | + <div class="blog-post-date"> | |
| 19 | + <span></span> | |
| 20 | + <p><?= \Yii::$app->formatter->asDate($model->date_add, 'php:d.m.Y') ?></p> | |
| 21 | + </div> | |
| 22 | + <div class="blog-post-views"> | |
| 23 | + <span></span> | |
| 24 | + <p><?= $model->view_count ?></p> | |
| 25 | + </div> | |
| 26 | + <div class="blog-post-comm-num"> | |
| 27 | + <span></span> | |
| 28 | + <p><?= count($model->comments) ?></p> | |
| 29 | + </div> | |
| 30 | + </div> | |
| 31 | + <?= Html::a($model->name, [ | |
| 32 | + 'company/blog-view', | |
| 33 | + 'company_id' => $model->user_id, | |
| 34 | + 'link' => $model->link, | |
| 35 | + ]) ?> | |
| 36 | +</div> | |
| 0 | 37 | \ No newline at end of file | ... | ... |
frontend/views/company/_company_common_review.php
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @var Blog $model | |
| 3 | + * @var Comment $model | |
| 4 | 4 | */ |
| 5 | - use common\models\Blog; | |
| 6 | - use yii\helpers\Html; | |
| 5 | + use common\modules\comment\models\Comment; | |
| 7 | 6 | |
| 8 | 7 | ?> |
| 9 | 8 | <?php |
| 10 | - echo Html::a(Html::img($model->cover), [ | |
| 11 | - 'company/blog-view', | |
| 12 | - 'company_id' => $model->user_id, | |
| 13 | - 'link' => $model->link, | |
| 14 | - ]); | |
| 15 | -?> | |
| 16 | -<div class="min-post-txt"> | |
| 17 | - <div class="blog-post-icons-wr style"> | |
| 18 | - <div class="blog-post-date"> | |
| 19 | - <span></span> | |
| 20 | - <p><?= \Yii::$app->formatter->asDate($model->date_add, 'php:d.m.Y') ?></p> | |
| 21 | - </div> | |
| 22 | - <div class="blog-post-views"> | |
| 23 | - <span></span> | |
| 24 | - <p><?= $model->view_count ?></p> | |
| 9 | + if(!empty( $model->rating )) { | |
| 10 | + ?> | |
| 11 | + <div class="rating"> | |
| 12 | + <!--оценка--> | |
| 13 | + <input type="hidden" class="val" value="<?=$model->rating->value?>" /> | |
| 14 | + <!--количество голосов--> | |
| 15 | + <input type="hidden" class="votes" value="1"/> | |
| 25 | 16 | </div> |
| 26 | - <div class="blog-post-comm-num"> | |
| 27 | - <span></span> | |
| 28 | - <p><?= count($model->comments) ?></p> | |
| 29 | - </div> | |
| 30 | - </div> | |
| 31 | - <?= Html::a($model->name, [ | |
| 32 | - 'company/blog-view', | |
| 33 | - 'company_id' => $model->user_id, | |
| 34 | - 'link' => $model->link, | |
| 35 | - ]) ?> | |
| 36 | -</div> | |
| 37 | 17 | \ No newline at end of file |
| 18 | + <?php | |
| 19 | + } | |
| 20 | +?> | |
| 21 | +<div class="company-performer-comments-autor"> | |
| 22 | + Отзыв от: | |
| 23 | + <?php | |
| 24 | + if(!empty( $model->author )) { | |
| 25 | + echo $model->author->name; | |
| 26 | + } else { | |
| 27 | + echo $model->user_name; | |
| 28 | + } | |
| 29 | + ?> | |
| 30 | +</div> | |
| 31 | +<div class="company-performer-comments-txt"><?= $model->text ?></div> | |
| 32 | +<a href="#" class="company-comm-see-all"><span>Развернуть</span></a> | |
| 38 | 33 | \ No newline at end of file | ... | ... |
frontend/views/company/common.php
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @var View $this | |
| 4 | - * @var User $company | |
| 3 | + * @var View $this | |
| 4 | + * @var User $company | |
| 5 | 5 | * @var ActiveDataProvider $projectProvider |
| 6 | 6 | * @var ActiveDataProvider $blogProvider |
| 7 | 7 | * @var ActiveDataProvider $commentProvider |
| ... | ... | @@ -9,6 +9,7 @@ |
| 9 | 9 | use common\models\User; |
| 10 | 10 | use yii\data\ActiveDataProvider; |
| 11 | 11 | use yii\helpers\ArrayHelper; |
| 12 | + use yii\helpers\Html; | |
| 12 | 13 | use yii\web\View; |
| 13 | 14 | use yii\widgets\ListView; |
| 14 | 15 | |
| ... | ... | @@ -220,17 +221,17 @@ |
| 220 | 221 | <div class="box-wr"> |
| 221 | 222 | <div class="box-all"> |
| 222 | 223 | <?php |
| 223 | - echo ListView::widget([ | |
| 224 | - 'dataProvider' => $blogProvider, | |
| 225 | - 'options' => [ | |
| 226 | - 'class' => 'min-post-wr', | |
| 227 | - ], | |
| 228 | - 'itemView' => '_company_common_review', | |
| 229 | - 'itemOptions' => [ | |
| 230 | - 'class' => 'min-post-block', | |
| 231 | - ], | |
| 232 | - 'layout' => '{items}', | |
| 233 | - ]); | |
| 224 | + echo ListView::widget([ | |
| 225 | + 'dataProvider' => $blogProvider, | |
| 226 | + 'options' => [ | |
| 227 | + 'class' => 'min-post-wr', | |
| 228 | + ], | |
| 229 | + 'itemView' => '_company_common_blog', | |
| 230 | + 'itemOptions' => [ | |
| 231 | + 'class' => 'min-post-block', | |
| 232 | + ], | |
| 233 | + 'layout' => '{items}', | |
| 234 | + ]); | |
| 234 | 235 | ?> |
| 235 | 236 | </div> |
| 236 | 237 | </div> |
| ... | ... | @@ -241,267 +242,120 @@ |
| 241 | 242 | /* |
| 242 | 243 | * User preloaded $company->teams models |
| 243 | 244 | */ |
| 244 | - $teams = ArrayHelper::index($company->teams, 'department.name'); // Group team members according to their department | |
| 245 | + $teams = ArrayHelper::index($company->teams, 'team_id', 'department.name'); // Group team members according to their department | |
| 245 | 246 | ?> |
| 246 | 247 | <div class="section-box-233"> |
| 247 | 248 | <div class="box-wr"> |
| 248 | 249 | <div class="box-all"> |
| 249 | 250 | <div class="table-team-title style">Состав команды</div> |
| 250 | 251 | <div class="table-team-wr style"> |
| 251 | - <?php | |
| 252 | - /** | |
| 253 | - * @todo BEGIN HERE | |
| 254 | - */ | |
| 255 | - for($i = 0; $i < count($teams); $i = $i+2) { | |
| 256 | - var_dump(array_keys($teams)[$i]); | |
| 257 | - } | |
| 258 | - ?> | |
| 259 | 252 | <div class="table-team-left"> |
| 260 | - <div class="tb-team-wr"> | |
| 261 | - <table class="title-table" cellspacing="0" cellpadding="0" border="0"> | |
| 262 | - <tr> | |
| 263 | - <td width="337">Административный</td> | |
| 264 | - <td align="center">(26 лет)</td> | |
| 265 | - </tr> | |
| 266 | - </table> | |
| 267 | - | |
| 268 | - <table class="all-table-first" cellspacing="0" cellpadding="0" border="0"> | |
| 269 | - <tr> | |
| 270 | - <td align="center" width="32"></td> | |
| 271 | - <td align="center" width="323">Ф.И.О.</td> | |
| 272 | - <td align="center" width="91">Опыт, лет</td> | |
| 273 | - </tr> | |
| 274 | - </table> | |
| 275 | - | |
| 276 | - <table class="all-table" cellspacing="0" cellpadding="0" border="0"> | |
| 277 | - <tr> | |
| 278 | - <td align="center" width="32"> | |
| 279 | - <img src="/images/portfolio-project/flag-img-1.jpg" alt=""/> | |
| 280 | - </td> | |
| 281 | - <td align="center" width="323">Петриченко Дмитрий Николаевич</td> | |
| 282 | - <td align="center" width="91">22</td> | |
| 283 | - </tr> | |
| 284 | - | |
| 285 | - <tr> | |
| 286 | - <td align="center" width="32"> | |
| 287 | - <img src="/images/portfolio-project/flag-img-2.jpg" alt=""/> | |
| 288 | - </td> | |
| 289 | - <td align="center" width="323">Петриченко Дмитрий Николаевич</td> | |
| 290 | - <td align="center" width="91">1</td> | |
| 291 | - </tr> | |
| 292 | - | |
| 293 | - <tr> | |
| 294 | - <td align="center" width="32"> | |
| 295 | - <img src="/images/portfolio-project/flag-img-3.jpg" alt=""/> | |
| 296 | - </td> | |
| 297 | - <td align="center" width="323">Петриченко Дмитрий Николаевич</td> | |
| 298 | - <td align="center" width="91">3</td> | |
| 299 | - </tr> | |
| 300 | - </table> | |
| 301 | - </div> | |
| 302 | - <div class="tb-team-wr"> | |
| 303 | - <table class="title-table" cellspacing="0" cellpadding="0" border="0"> | |
| 304 | - <tr> | |
| 305 | - <td width="337">Административный</td> | |
| 306 | - <td align="center">(26 лет)</td> | |
| 307 | - </tr> | |
| 308 | - </table> | |
| 309 | - | |
| 310 | - <table class="all-table-first" cellspacing="0" cellpadding="0" border="0"> | |
| 311 | - <tr> | |
| 312 | - <td align="center" width="32"></td> | |
| 313 | - <td align="center" width="323">Ф.И.О.</td> | |
| 314 | - <td align="center" width="91">Опыт, лет</td> | |
| 315 | - </tr> | |
| 316 | - </table> | |
| 317 | - | |
| 318 | - <table class="all-table" cellspacing="0" cellpadding="0" border="0"> | |
| 319 | - <tr> | |
| 320 | - <td align="center" width="32"> | |
| 321 | - <img src="/images/portfolio-project/flag-img-1.jpg" alt=""/> | |
| 322 | - </td> | |
| 323 | - <td align="center" width="323">Петриченко Дмитрий Николаевич</td> | |
| 324 | - <td align="center" width="91">22</td> | |
| 325 | - </tr> | |
| 326 | - | |
| 327 | - <tr> | |
| 328 | - <td align="center" width="32"> | |
| 329 | - <img src="/images/portfolio-project/flag-img-2.jpg" alt=""/> | |
| 330 | - </td> | |
| 331 | - <td align="center" width="323">Петриченко Дмитрий Николаевич</td> | |
| 332 | - <td align="center" width="91">1</td> | |
| 333 | - </tr> | |
| 334 | - | |
| 335 | - <tr> | |
| 336 | - <td align="center" width="32"> | |
| 337 | - <img src="/images/portfolio-project/flag-img-3.jpg" alt=""/> | |
| 338 | - </td> | |
| 339 | - <td align="center" width="323">Петриченко Дмитрий Николаевич</td> | |
| 340 | - <td align="center" width="91">3</td> | |
| 341 | - </tr> | |
| 342 | - | |
| 343 | - <tr> | |
| 344 | - <td align="center" width="32"> | |
| 345 | - <img src="/images/portfolio-project/flag-img-1.jpg" alt=""/> | |
| 346 | - </td> | |
| 347 | - <td align="center" width="323">Петриченко Дмитрий Николаевич</td> | |
| 348 | - <td align="center" width="91">10</td> | |
| 349 | - </tr> | |
| 350 | - | |
| 351 | - <tr> | |
| 352 | - <td align="center" width="32"> | |
| 353 | - <img src="/images/portfolio-project/flag-img-2.jpg" alt=""/> | |
| 354 | - </td> | |
| 355 | - <td align="center" width="323">Петриченко Дмитрий Николаевич</td> | |
| 356 | - <td align="center" width="91">1</td> | |
| 357 | - </tr> | |
| 358 | - </table> | |
| 359 | - </div> | |
| 360 | - <div class="tb-team-wr"> | |
| 361 | - <table class="title-table" cellspacing="0" cellpadding="0" border="0"> | |
| 362 | - <tr> | |
| 363 | - <td width="337">Административный</td> | |
| 364 | - <td align="center">(26 лет)</td> | |
| 365 | - </tr> | |
| 366 | - </table> | |
| 367 | - | |
| 368 | - <table class="all-table-first" cellspacing="0" cellpadding="0" border="0"> | |
| 369 | - <tr> | |
| 370 | - <td align="center" width="32"></td> | |
| 371 | - <td align="center" width="323">Ф.И.О.</td> | |
| 372 | - <td align="center" width="91">Опыт, лет</td> | |
| 373 | - </tr> | |
| 374 | - </table> | |
| 375 | - | |
| 376 | - <table class="all-table" cellspacing="0" cellpadding="0" border="0"> | |
| 377 | - <tr> | |
| 378 | - <td align="center" width="32"> | |
| 379 | - <img src="/images/portfolio-project/flag-img-1.jpg" alt=""/> | |
| 380 | - </td> | |
| 381 | - <td align="center" width="323">Петриченко Дмитрий Николаевич</td> | |
| 382 | - <td align="center" width="91">22</td> | |
| 383 | - </tr> | |
| 384 | - | |
| 385 | - <tr> | |
| 386 | - <td align="center" width="32"> | |
| 387 | - <img src="/images/portfolio-project/flag-img-2.jpg" alt=""/> | |
| 388 | - </td> | |
| 389 | - <td align="center" width="323">Петриченко Дмитрий Николаевич</td> | |
| 390 | - <td align="center" width="91">1</td> | |
| 391 | - </tr> | |
| 392 | - | |
| 393 | - <tr> | |
| 394 | - <td align="center" width="32"> | |
| 395 | - <img src="/images/portfolio-project/flag-img-3.jpg" alt=""/> | |
| 396 | - </td> | |
| 397 | - <td align="center" width="323">Петриченко Дмитрий Николаевич</td> | |
| 398 | - <td align="center" width="91">3</td> | |
| 399 | - </tr> | |
| 400 | - </table> | |
| 401 | - </div> | |
| 253 | + <?php | |
| 254 | + for($i = 0; $i < count($teams); $i = $i + 2) { | |
| 255 | + ?> | |
| 256 | + <div class="tb-team-wr"> | |
| 257 | + <table class="title-table" cellspacing="0" cellpadding="0" border="0"> | |
| 258 | + <tr> | |
| 259 | + <td width="337"> | |
| 260 | + <?php | |
| 261 | + if(!empty( array_keys($teams)[ $i ] )) { | |
| 262 | + echo array_keys($teams)[ $i ]; | |
| 263 | + } else { | |
| 264 | + echo 'Не определен'; | |
| 265 | + } | |
| 266 | + ?> | |
| 267 | + </td> | |
| 268 | + <td align="center"></td> | |
| 269 | + </tr> | |
| 270 | + </table> | |
| 271 | + <table class="all-table-first" cellspacing="0" cellpadding="0" border="0"> | |
| 272 | + <tr> | |
| 273 | + <td align="center" width="32"></td> | |
| 274 | + <td align="center" width="323">Ф.И.О.</td> | |
| 275 | + <td align="center" width="91">Опыт, лет</td> | |
| 276 | + </tr> | |
| 277 | + </table> | |
| 278 | + <table class="all-table" cellspacing="0" cellpadding="0" border="0"> | |
| 279 | + <?php | |
| 280 | + foreach($teams[ array_keys($teams)[ $i ] ] as $team) { | |
| 281 | + ?> | |
| 282 | + <tr> | |
| 283 | + <td align="center" width="32"> | |
| 284 | + <?= Html::img('/images/portfolio-project/flag-img-1.jpg') ?> | |
| 285 | + </td> | |
| 286 | + <td align="center" width="323"><?= $team->lastname . ' ' . $team->firstname ?></td> | |
| 287 | + <td align="center" width="91"> | |
| 288 | + <?php | |
| 289 | + if(!empty( $team->experience_from )) { | |
| 290 | + echo date('Y') - $team->experience_from; | |
| 291 | + } else { | |
| 292 | + echo 'Не указан'; | |
| 293 | + } | |
| 294 | + ?> | |
| 295 | + </td> | |
| 296 | + </tr> | |
| 297 | + <?php | |
| 298 | + } | |
| 299 | + ?> | |
| 300 | + </table> | |
| 301 | + </div> | |
| 302 | + <?php | |
| 303 | + } | |
| 304 | + ?> | |
| 402 | 305 | </div> |
| 403 | 306 | <div class="table-team-right"> |
| 404 | - <div class="tb-team-wr"> | |
| 405 | - <table class="title-table" cellspacing="0" cellpadding="0" border="0"> | |
| 406 | - <tr> | |
| 407 | - <td width="337">Административный</td> | |
| 408 | - <td align="center">(26 лет)</td> | |
| 409 | - </tr> | |
| 410 | - </table> | |
| 411 | - | |
| 412 | - <table class="all-table-first" cellspacing="0" cellpadding="0" border="0"> | |
| 413 | - <tr> | |
| 414 | - <td align="center" width="32"></td> | |
| 415 | - <td align="center" width="323">Ф.И.О.</td> | |
| 416 | - <td align="center" width="91">Опыт, лет</td> | |
| 417 | - </tr> | |
| 418 | - </table> | |
| 419 | - | |
| 420 | - <table class="all-table" cellspacing="0" cellpadding="0" border="0"> | |
| 421 | - <tr> | |
| 422 | - <td align="center" width="32"> | |
| 423 | - <img src="/images/portfolio-project/flag-img-1.jpg" alt=""/> | |
| 424 | - </td> | |
| 425 | - <td align="center" width="323">Петриченко Дмитрий Николаевич</td> | |
| 426 | - <td align="center" width="91">22</td> | |
| 427 | - </tr> | |
| 428 | - | |
| 429 | - <tr> | |
| 430 | - <td align="center" width="32"> | |
| 431 | - <img src="/images/portfolio-project/flag-img-2.jpg" alt=""/> | |
| 432 | - </td> | |
| 433 | - <td align="center" width="323">Петриченко Дмитрий Николаевич</td> | |
| 434 | - <td align="center" width="91">1</td> | |
| 435 | - </tr> | |
| 436 | - | |
| 437 | - <tr> | |
| 438 | - <td align="center" width="32"> | |
| 439 | - <img src="/images/portfolio-project/flag-img-3.jpg" alt=""/> | |
| 440 | - </td> | |
| 441 | - <td align="center" width="323">Петриченко Дмитрий Николаевич</td> | |
| 442 | - <td align="center" width="91">3</td> | |
| 443 | - </tr> | |
| 444 | - | |
| 445 | - <tr> | |
| 446 | - <td align="center" width="32"> | |
| 447 | - <img src="/images/portfolio-project/flag-img-3.jpg" alt=""/> | |
| 448 | - </td> | |
| 449 | - <td align="center" width="323">Петриченко Дмитрий Николаевич</td> | |
| 450 | - <td align="center" width="91">3</td> | |
| 451 | - </tr> | |
| 452 | - </table> | |
| 453 | - </div> | |
| 454 | - | |
| 455 | - <div class="tb-team-wr"> | |
| 456 | - <table class="title-table" cellspacing="0" cellpadding="0" border="0"> | |
| 457 | - <tr> | |
| 458 | - <td width="337">Административный</td> | |
| 459 | - <td align="center">(26 лет)</td> | |
| 460 | - </tr> | |
| 461 | - </table> | |
| 462 | - | |
| 463 | - <table class="all-table-first" cellspacing="0" cellpadding="0" border="0"> | |
| 464 | - <tr> | |
| 465 | - <td align="center" width="32"></td> | |
| 466 | - <td align="center" width="323">Ф.И.О.</td> | |
| 467 | - <td align="center" width="91">Опыт, лет</td> | |
| 468 | - </tr> | |
| 469 | - </table> | |
| 470 | - | |
| 471 | - <table class="all-table" cellspacing="0" cellpadding="0" border="0"> | |
| 472 | - <tr> | |
| 473 | - <td align="center" width="32"> | |
| 474 | - <img src="/images/portfolio-project/flag-img-1.jpg" alt=""/> | |
| 475 | - </td> | |
| 476 | - <td align="center" width="323">Петриченко Дмитрий Николаевич</td> | |
| 477 | - <td align="center" width="91">22</td> | |
| 478 | - </tr> | |
| 479 | - | |
| 480 | - <tr> | |
| 481 | - <td align="center" width="32"> | |
| 482 | - <img src="/images/portfolio-project/flag-img-2.jpg" alt=""/> | |
| 483 | - </td> | |
| 484 | - <td align="center" width="323">Петриченко Дмитрий Николаевич</td> | |
| 485 | - <td align="center" width="91">1</td> | |
| 486 | - </tr> | |
| 487 | - | |
| 488 | - <tr> | |
| 489 | - <td align="center" width="32"> | |
| 490 | - <img src="/images/portfolio-project/flag-img-3.jpg" alt=""/> | |
| 491 | - </td> | |
| 492 | - <td align="center" width="323">Петриченко Дмитрий Николаевич</td> | |
| 493 | - <td align="center" width="91">3</td> | |
| 494 | - </tr> | |
| 495 | - | |
| 496 | - <tr> | |
| 497 | - <td align="center" width="32"> | |
| 498 | - <img src="/images/portfolio-project/flag-img-3.jpg" alt=""/> | |
| 499 | - </td> | |
| 500 | - <td align="center" width="323">Петриченко Дмитрий Николаевич</td> | |
| 501 | - <td align="center" width="91">3</td> | |
| 502 | - </tr> | |
| 503 | - </table> | |
| 504 | - </div> | |
| 307 | + <?php | |
| 308 | + for($i = 1; $i < count($teams); $i = $i + 2) { | |
| 309 | + ?> | |
| 310 | + <div class="tb-team-wr"> | |
| 311 | + <table class="title-table" cellspacing="0" cellpadding="0" border="0"> | |
| 312 | + <tr> | |
| 313 | + <td width="337"> | |
| 314 | + <?php | |
| 315 | + if(!empty( array_keys($teams)[ $i ] )) { | |
| 316 | + echo array_keys($teams)[ $i ]; | |
| 317 | + } else { | |
| 318 | + echo 'Не определен'; | |
| 319 | + } | |
| 320 | + ?> | |
| 321 | + </td> | |
| 322 | + <td align="center"></td> | |
| 323 | + </tr> | |
| 324 | + </table> | |
| 325 | + <table class="all-table-first" cellspacing="0" cellpadding="0" border="0"> | |
| 326 | + <tr> | |
| 327 | + <td align="center" width="32"></td> | |
| 328 | + <td align="center" width="323">Ф.И.О.</td> | |
| 329 | + <td align="center" width="91">Опыт, лет</td> | |
| 330 | + </tr> | |
| 331 | + </table> | |
| 332 | + <table class="all-table" cellspacing="0" cellpadding="0" border="0"> | |
| 333 | + <?php | |
| 334 | + foreach($teams[ array_keys($teams)[ $i ] ] as $team) { | |
| 335 | + ?> | |
| 336 | + <tr> | |
| 337 | + <td align="center" width="32"> | |
| 338 | + <?= Html::img('/images/portfolio-project/flag-img-1.jpg') ?> | |
| 339 | + </td> | |
| 340 | + <td align="center" width="323"><?= $team->lastname . ' ' . $team->firstname ?></td> | |
| 341 | + <td align="center" width="91"> | |
| 342 | + <?php | |
| 343 | + if(!empty( $team->experience_from )) { | |
| 344 | + echo date('Y') - $team->experience_from; | |
| 345 | + } else { | |
| 346 | + echo 'Не указан'; | |
| 347 | + } | |
| 348 | + ?> | |
| 349 | + </td> | |
| 350 | + </tr> | |
| 351 | + <?php | |
| 352 | + } | |
| 353 | + ?> | |
| 354 | + </table> | |
| 355 | + </div> | |
| 356 | + <?php | |
| 357 | + } | |
| 358 | + ?> | |
| 505 | 359 | </div> |
| 506 | 360 | </div> |
| 507 | 361 | </div> |
| ... | ... | @@ -514,64 +368,26 @@ |
| 514 | 368 | <div class="section-box-19"> |
| 515 | 369 | <div class="box-wr"> |
| 516 | 370 | <div class="box-all"> |
| 517 | - <div class="company-performer-comm-title style">Отзывов: 54</div> | |
| 518 | - <div class="company-performer-comments-wr style"> | |
| 519 | - <div class="company-performer-comments-bl"> | |
| 520 | - <div class="rating"> | |
| 521 | - <!--оценка--> | |
| 522 | - <input type="hidden" class="val" value="3"/> | |
| 523 | - <!--количество голосов--> | |
| 524 | - <input type="hidden" class="votes" value="12"/> | |
| 525 | - </div> | |
| 526 | - | |
| 527 | - <div class="company-performer-comments-autor">Отзыв от: Евгения</div> | |
| 528 | - <div class="company-performer-comments-txt"></div> | |
| 529 | - <a href="#" class="company-comm-see-all"><span>Развернуть</span></a> | |
| 530 | - </div> | |
| 531 | - | |
| 532 | - <div class="company-performer-comments-bl"> | |
| 533 | - <div class="rating"> | |
| 534 | - <!--оценка--> | |
| 535 | - <input type="hidden" class="val" value="2"/> | |
| 536 | - <!--количество голосов--> | |
| 537 | - <input type="hidden" class="votes" value="12"/> | |
| 538 | - </div> | |
| 539 | - | |
| 540 | - <div class="company-performer-comments-autor">Отзыв от: Евгения</div> | |
| 541 | - <div class="company-performer-comments-txt">2Петер, очень понравились Ваши работы. Замечательный вкус!!! Тонкое сочетание стиля, цвета и формы! Очень нравится. Успехов в работе и вдохновения.</div> | |
| 542 | - <a href="#" class="company-comm-see-all"><span>Развернуть</span></a> | |
| 543 | - </div> | |
| 544 | - | |
| 545 | - <div class="company-performer-comments-bl"> | |
| 546 | - <div class="rating"> | |
| 547 | - <!--оценка--> | |
| 548 | - <input type="hidden" class="val" value="4"/> | |
| 549 | - <!--количество голосов--> | |
| 550 | - <input type="hidden" class="votes" value="12"/> | |
| 551 | - </div> | |
| 552 | - | |
| 553 | - <div class="company-performer-comments-autor">Отзыв от: Евгения</div> | |
| 554 | - <div class="company-performer-comments-txt">3Петер, очень понравились Ваши работы. Замечательный вкус!!! Тонкое сочетание стиля, цвета и формы! Очень нравится. Успехов в работе и вдохновения. Петер, очень понравились Ваши работы. Замечательный вкус!!! Тонкое сочетание стиля, цвета и формы! Очень нравится. Успехов в работе и вдохновения. | |
| 555 | - </div> | |
| 556 | - <a href="#" class="company-comm-see-all"><span>Развернуть</span></a> | |
| 557 | - </div> | |
| 558 | - | |
| 559 | - <div class="company-performer-comments-bl"> | |
| 560 | - <div class="rating"> | |
| 561 | - <!--оценка--> | |
| 562 | - <input type="hidden" class="val" value="5"/> | |
| 563 | - <!--количество голосов--> | |
| 564 | - <input type="hidden" class="votes" value="12"/> | |
| 565 | - </div> | |
| 566 | - | |
| 567 | - <div class="company-performer-comments-autor">Отзыв от: Евгения</div> | |
| 568 | - <div class="company-performer-comments-txt">4Петер, очень понравились Ваши работы. Замечательный вкус!!! Тонкое сочетание стиля, цвета и формы! Очень нравится. Успехов в работе и вдохновения. | |
| 569 | - </div> | |
| 570 | - <a href="#" class="company-comm-see-all"><span>Развернуть</span></a> | |
| 571 | - </div> | |
| 572 | - </div> | |
| 371 | + <div class="company-performer-comm-title style">Отзывов: <?= $commentProvider->totalCount ?></div> | |
| 372 | + <?php | |
| 373 | + echo ListView::widget([ | |
| 374 | + 'dataProvider' => $commentProvider, | |
| 375 | + 'options' => [ | |
| 376 | + 'class' => 'company-performer-comments-wr style', | |
| 377 | + ], | |
| 378 | + 'itemView' => '_company_common_review', | |
| 379 | + 'itemOptions' => [ | |
| 380 | + 'class' => 'company-performer-comments-bl', | |
| 381 | + ], | |
| 382 | + 'layout' => '{items}', | |
| 383 | + ]); | |
| 384 | + ?> | |
| 573 | 385 | <div class="company-performer-comm-see-all-butt style"> |
| 574 | - <a href="#">Читать все отзывы</a></div> | |
| 386 | + <?= Html::a('Читать все отзывы', [ | |
| 387 | + 'company/review', | |
| 388 | + 'company_id' => $company->id, | |
| 389 | + ]) ?> | |
| 390 | + </div> | |
| 575 | 391 | </div> |
| 576 | 392 | </div> |
| 577 | 393 | </div> | ... | ... |