Commit b943561d264d0598e71773e7cecc016c731997f6
1 parent
70d00c60
git
Showing
3 changed files
with
59 additions
and
25 deletions
Show diff stats
common/modules/comment/widgets/views/form-comment-answer.php
@@ -9,17 +9,19 @@ | @@ -9,17 +9,19 @@ | ||
9 | use yii\helpers\Html; | 9 | use yii\helpers\Html; |
10 | 10 | ||
11 | ?> | 11 | ?> |
12 | -<?php | ||
13 | - if(!empty( $dataProvider )) { | ||
14 | - ?> | ||
15 | - <div class="new-portf-comm-count">Вопросов: <?= $dataProvider->totalCount ?></div> | ||
16 | - <?php | ||
17 | - } | ||
18 | -?> | 12 | +<div class="tender-add-answer-title fix_tender_answer">Задать вопрос</div> |
13 | +<div class="new-portf-add-comm style tender_questions_" style="padding-top: 16px"> | ||
14 | + | ||
15 | + <?php | ||
16 | + if(!empty(\Yii::$app->user->id)) {?> | ||
17 | + <div class="form-ico-ded-wr" style="width: 100%"> | ||
18 | + <div class="header-cabinet-foto"><img src="<?php echo \Yii::$app->user->identity->userInfo->image; ?>" alt=""></div> | ||
19 | + <div class="form-value-ded-name"><?php echo \Yii::$app->user->identity->name; ?></div> | ||
20 | + </div> | ||
19 | 21 | ||
20 | -<div class="new-portf-add-comm style"> | ||
21 | 22 | ||
22 | <?php | 23 | <?php |
24 | + } | ||
23 | $form = ActiveForm::begin(); | 25 | $form = ActiveForm::begin(); |
24 | if(!$model->isNewRecord) { | 26 | if(!$model->isNewRecord) { |
25 | echo $form->field($model, 'comment_id') | 27 | echo $form->field($model, 'comment_id') |
@@ -60,7 +62,7 @@ | @@ -60,7 +62,7 @@ | ||
60 | 62 | ||
61 | echo $form->field($model, 'text', [ | 63 | echo $form->field($model, 'text', [ |
62 | 'options' => [ | 64 | 'options' => [ |
63 | - 'class' => 'input-blocks-comm area-comm', | 65 | + 'class' => 'input-blocks-comm area-comm tender_com_fix_', |
64 | ], | 66 | ], |
65 | 'inputOptions' => [ | 67 | 'inputOptions' => [ |
66 | 'class' => 'custom-area-4', | 68 | 'class' => 'custom-area-4', |
@@ -72,9 +74,9 @@ | @@ -72,9 +74,9 @@ | ||
72 | <div class="input-blocks-comm-button style"> | 74 | <div class="input-blocks-comm-button style"> |
73 | <?php | 75 | <?php |
74 | if($model->isNewRecord) { | 76 | if($model->isNewRecord) { |
75 | - echo Html::submitButton('Добавить комментарий'); | 77 | + echo Html::submitButton('Задать вопрос'); |
76 | } else { | 78 | } else { |
77 | - echo Html::submitButton('Обновить комментарий', [ 'class' => 'artbox_comment_update_answer_submit' ]); | 79 | + echo Html::submitButton('Обновить вопрос', [ 'class' => 'artbox_comment_update_answer_submit' ]); |
78 | } | 80 | } |
79 | ?> | 81 | ?> |
80 | </div> | 82 | </div> |
common/modules/comment/widgets/views/list-comment-question.php
@@ -5,6 +5,15 @@ | @@ -5,6 +5,15 @@ | ||
5 | */ | 5 | */ |
6 | use common\modules\comment\models\Comment; | 6 | use common\modules\comment\models\Comment; |
7 | use common\modules\comment\widgets\CommentWidget; | 7 | use common\modules\comment\widgets\CommentWidget; |
8 | + | ||
9 | + | ||
10 | + if(!empty( $dataProvider )) { | ||
11 | + ?> | ||
12 | + <div class="tender-offer-proj-title-all">Вопросов: (<?= $dataProvider->totalCount ?>)</div> | ||
13 | + <?php | ||
14 | + } | ||
15 | + | ||
16 | + | ||
8 | echo \yii\widgets\ListView::widget([ | 17 | echo \yii\widgets\ListView::widget([ |
9 | 'dataProvider' => $dataProvider, | 18 | 'dataProvider' => $dataProvider, |
10 | 'itemView' => '_question_comment_view', | 19 | 'itemView' => '_question_comment_view', |
frontend/web/css/style.css
@@ -4398,11 +4398,11 @@ ul.min_markers_two | @@ -4398,11 +4398,11 @@ ul.min_markers_two | ||
4398 | margin-top: 4px; | 4398 | margin-top: 4px; |
4399 | } | 4399 | } |
4400 | .tender-map {margin-top: 15px} | 4400 | .tender-map {margin-top: 15px} |
4401 | -.tender-offer-proj-title-all {text-align: center; font-size: 20px; margin-top: 78px;} | 4401 | +.tender-offer-proj-title-all {text-align: left; font-size: 20px; margin-top: 35px;} |
4402 | .tender-offer-proj-blocks-wr {padding-bottom: 50px} | 4402 | .tender-offer-proj-blocks-wr {padding-bottom: 50px} |
4403 | .tender-offer-proj-blocks .performer-vacancy-sidebar-left {top: -10px; padding-top: 10px} | 4403 | .tender-offer-proj-blocks .performer-vacancy-sidebar-left {top: -10px; padding-top: 10px} |
4404 | .tender-offer-proj-blocks {padding-bottom: 17px; border-bottom: 1px solid #bababa; margin-top: 50px} | 4404 | .tender-offer-proj-blocks {padding-bottom: 17px; border-bottom: 1px solid #bababa; margin-top: 50px} |
4405 | -.tender-offer-proj-blocks:first-child{margin-top: 47px} | 4405 | +.tender-offer-proj-blocks:first-child{margin-top: 25px} |
4406 | .tender-see-profile { | 4406 | .tender-see-profile { |
4407 | text-decoration: none; | 4407 | text-decoration: none; |
4408 | text-align: center; | 4408 | text-align: center; |
@@ -4581,7 +4581,7 @@ ul.download-list-files li:hover .download-link {transition: 0.2s; opacity: 1; -m | @@ -4581,7 +4581,7 @@ ul.download-list-files li:hover .download-link {transition: 0.2s; opacity: 1; -m | ||
4581 | .form-tender-txt textarea{ | 4581 | .form-tender-txt textarea{ |
4582 | width: 100%; | 4582 | width: 100%; |
4583 | max-width: 100%; | 4583 | max-width: 100%; |
4584 | - border: 1px solid #c2c2c2; | 4584 | + border: 1px solid #f1f1f1; |
4585 | /*min-height: 98px;*/ | 4585 | /*min-height: 98px;*/ |
4586 | height: 100px; | 4586 | height: 100px; |
4587 | box-sizing: border-box; | 4587 | box-sizing: border-box; |
@@ -4593,7 +4593,7 @@ ul.download-list-files li:hover .download-link {transition: 0.2s; opacity: 1; -m | @@ -4593,7 +4593,7 @@ ul.download-list-files li:hover .download-link {transition: 0.2s; opacity: 1; -m | ||
4593 | float: left; | 4593 | float: left; |
4594 | margin-top: 18px; | 4594 | margin-top: 18px; |
4595 | } | 4595 | } |
4596 | -.form-tender-answer form input[type="submit"] { | 4596 | +.form-tender-answer form input[type="submit"], .tender_questions_ .input-blocks-comm-button button { |
4597 | height: 45px; | 4597 | height: 45px; |
4598 | outline: none; | 4598 | outline: none; |
4599 | color: #fff; | 4599 | color: #fff; |
@@ -4603,12 +4603,13 @@ ul.download-list-files li:hover .download-link {transition: 0.2s; opacity: 1; -m | @@ -4603,12 +4603,13 @@ ul.download-list-files li:hover .download-link {transition: 0.2s; opacity: 1; -m | ||
4603 | border-top: none; | 4603 | border-top: none; |
4604 | border-left: none; | 4604 | border-left: none; |
4605 | border-right: none; | 4605 | border-right: none; |
4606 | - width: 170px; | 4606 | + width: 167px; |
4607 | border-radius: 4px; | 4607 | border-radius: 4px; |
4608 | cursor: pointer; | 4608 | cursor: pointer; |
4609 | margin-right: 10px; | 4609 | margin-right: 10px; |
4610 | float: left; | 4610 | float: left; |
4611 | } | 4611 | } |
4612 | + | ||
4612 | .tender-form-buttons-wr a { | 4613 | .tender-form-buttons-wr a { |
4613 | height: 29px; | 4614 | height: 29px; |
4614 | line-height: 29px; | 4615 | line-height: 29px; |
@@ -5290,9 +5291,8 @@ input.disabled.admin-check:checked + label, input.disabled.admin-check:checked + | @@ -5290,9 +5291,8 @@ input.disabled.admin-check:checked + label, input.disabled.admin-check:checked + | ||
5290 | position: relative; | 5291 | position: relative; |
5291 | } | 5292 | } |
5292 | .input-blocks-comm:first-child{margin-left: 0} | 5293 | .input-blocks-comm:first-child{margin-left: 0} |
5293 | -.new-portf-add-comm {padding: 24px 20px 0 20px; box-sizing: border-box; | 5294 | +.new-portf-add-comm {padding: 24px 20px 30px 20px; box-sizing: border-box; |
5294 | margin-top: 10px; | 5295 | margin-top: 10px; |
5295 | - padding-bottom: 30px; | ||
5296 | background: #f1f1f1;} | 5296 | background: #f1f1f1;} |
5297 | .input-blocks-comm.area-comm { | 5297 | .input-blocks-comm.area-comm { |
5298 | width: 680px; | 5298 | width: 680px; |
@@ -5300,6 +5300,9 @@ input.disabled.admin-check:checked + label, input.disabled.admin-check:checked + | @@ -5300,6 +5300,9 @@ input.disabled.admin-check:checked + label, input.disabled.admin-check:checked + | ||
5300 | margin-top: 10px; | 5300 | margin-top: 10px; |
5301 | position: relative; | 5301 | position: relative; |
5302 | } | 5302 | } |
5303 | +.tender_questions_ .input-blocks-comm.area-comm { | ||
5304 | + margin-top: 15px; | ||
5305 | +} | ||
5303 | .custom-input-4 { | 5306 | .custom-input-4 { |
5304 | width: 230px; | 5307 | width: 230px; |
5305 | height: 32px; | 5308 | height: 32px; |
@@ -7044,7 +7047,7 @@ li.active-menu-admin:hover a .ico_num { | @@ -7044,7 +7047,7 @@ li.active-menu-admin:hover a .ico_num { | ||
7044 | font-size: 18px; | 7047 | font-size: 18px; |
7045 | } | 7048 | } |
7046 | .form-tender-answer .form-value-wr { | 7049 | .form-tender-answer .form-value-wr { |
7047 | - margin-top: 15px; | 7050 | + margin-top: 16px; |
7048 | } | 7051 | } |
7049 | .new-portf-add-comm.fix-portf_ {padding-top: 0} | 7052 | .new-portf-add-comm.fix-portf_ {padding-top: 0} |
7050 | #commentproject-budget_from, #commentproject-budget_to, #commentproject-term_from, #commentproject-term_to { | 7053 | #commentproject-budget_from, #commentproject-budget_to, #commentproject-term_from, #commentproject-term_to { |
@@ -7058,13 +7061,13 @@ li.active-menu-admin:hover a .ico_num { | @@ -7058,13 +7061,13 @@ li.active-menu-admin:hover a .ico_num { | ||
7058 | ._fix_errors_tender .help-block{ | 7061 | ._fix_errors_tender .help-block{ |
7059 | display: none; | 7062 | display: none; |
7060 | } | 7063 | } |
7061 | -._fix_errors_tender .has-error input, ._fix_errors_tender .has-error textarea { | 7064 | +._fix_errors_tender .has-error input, ._fix_errors_tender .has-error textarea, .tender_com_fix_.has-error textarea { |
7062 | border:1px solid #f10b00; | 7065 | border:1px solid #f10b00; |
7063 | } | 7066 | } |
7064 | ._fix_errors_tender .form-price-wr span {margin-left: 10px; display: block; width: 55px; float: left} | 7067 | ._fix_errors_tender .form-price-wr span {margin-left: 10px; display: block; width: 55px; float: left} |
7065 | ._fix_errors_tender .form-price-wr span:first-child {margin-left: 0} | 7068 | ._fix_errors_tender .form-price-wr span:first-child {margin-left: 0} |
7066 | ._fix_errors_tender select {background: #fff; padding-left: 5px} | 7069 | ._fix_errors_tender select {background: #fff; padding-left: 5px} |
7067 | -._fix_errors_tender .get-project-new { | 7070 | +._fix_errors_tender .get-project-new, .tender_questions_ .input-blocks-comm-button button { |
7068 | height: 29px !important; | 7071 | height: 29px !important; |
7069 | line-height: 29px !important; | 7072 | line-height: 29px !important; |
7070 | background: #148ad6; | 7073 | background: #148ad6; |
@@ -7074,7 +7077,8 @@ li.active-menu-admin:hover a .ico_num { | @@ -7074,7 +7077,8 @@ li.active-menu-admin:hover a .ico_num { | ||
7074 | filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#148ad6', endColorstr='#0054a6',GradientType=0 ); | 7077 | filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#148ad6', endColorstr='#0054a6',GradientType=0 ); |
7075 | border-bottom: 0; | 7078 | border-bottom: 0; |
7076 | } | 7079 | } |
7077 | -._fix_errors_tender .get-project-new:hover { | 7080 | +._fix_errors_tender .get-project-new:hover, .tender_questions_ .input-blocks-comm-button button:hover { |
7081 | + color: #fff; | ||
7078 | background: #0054a6; | 7082 | background: #0054a6; |
7079 | background: -moz-linear-gradient(top, #0054a6 5%, #207cca 5%, #207cca 5%, #207cca 5%, #148ad6 100%); | 7083 | background: -moz-linear-gradient(top, #0054a6 5%, #207cca 5%, #207cca 5%, #207cca 5%, #148ad6 100%); |
7080 | background: -webkit-linear-gradient(top, #0054a6 5%,#207cca 5%,#207cca 5%,#207cca 5%,#148ad6 100%); | 7084 | background: -webkit-linear-gradient(top, #0054a6 5%,#207cca 5%,#207cca 5%,#207cca 5%,#148ad6 100%); |
@@ -7085,7 +7089,7 @@ li.active-menu-admin:hover a .ico_num { | @@ -7085,7 +7089,7 @@ li.active-menu-admin:hover a .ico_num { | ||
7085 | box-shadow: none; | 7089 | box-shadow: none; |
7086 | border-bottom: 0; | 7090 | border-bottom: 0; |
7087 | } | 7091 | } |
7088 | -._fix_errors_tender .get-project-new:active { | 7092 | +._fix_errors_tender .get-project-new:active, .tender_questions_ .input-blocks-comm-button button:active { |
7089 | background: #0054a6; | 7093 | background: #0054a6; |
7090 | } | 7094 | } |
7091 | ._fix_errors_tender .get-list-new { | 7095 | ._fix_errors_tender .get-list-new { |
@@ -7219,7 +7223,7 @@ li.active-menu-admin:hover a .ico_num { | @@ -7219,7 +7223,7 @@ li.active-menu-admin:hover a .ico_num { | ||
7219 | font-style: normal; | 7223 | font-style: normal; |
7220 | font-weight: normal; | 7224 | font-weight: normal; |
7221 | line-height: 1; | 7225 | line-height: 1; |
7222 | - | 7226 | + font-size: 16px; |
7223 | -webkit-font-smoothing: antialiased; | 7227 | -webkit-font-smoothing: antialiased; |
7224 | -moz-osx-font-smoothing: grayscale; | 7228 | -moz-osx-font-smoothing: grayscale; |
7225 | } | 7229 | } |
@@ -8013,4 +8017,23 @@ li.active-menu-admin:hover a .ico_num { | @@ -8013,4 +8017,23 @@ li.active-menu-admin:hover a .ico_num { | ||
8013 | .hide { | 8017 | .hide { |
8014 | visibility: hidden; | 8018 | visibility: hidden; |
8015 | } | 8019 | } |
8016 | -/*End of rating glyphicon*/ | ||
8017 | \ No newline at end of file | 8020 | \ No newline at end of file |
8021 | +.rating-container .star {margin: 0 1px !important;} | ||
8022 | +.rating-container .empty-stars { | ||
8023 | + color: #dac782; | ||
8024 | +} | ||
8025 | +.rating-container .filled-stars { | ||
8026 | + | ||
8027 | + color: #dac782 !important; | ||
8028 | + | ||
8029 | + -webkit-text-stroke: 0 #dac782; | ||
8030 | + text-shadow: none; | ||
8031 | + | ||
8032 | +} | ||
8033 | +/*End of rating glyphicon*/ | ||
8034 | +.tender_com_fix_ { | ||
8035 | + width: 100% !important; | ||
8036 | +} | ||
8037 | +.tender_com_fix_ .help-block { | ||
8038 | + display: none; | ||
8039 | +} | ||
8040 | +.tender_questions_ .input-blocks-comm-button {margin-top: 20px} |