Commit 0aa459ef18a2b2c7be567afb20146422e788df1a
1 parent
79391a64
git
Showing
2 changed files
with
85 additions
and
82 deletions
Show diff stats
frontend/views/tender/view.php
... | ... | @@ -226,98 +226,98 @@ $this->title = 'My Yii Application'; |
226 | 226 | </div> |
227 | 227 | <div id="map_canvas" style="width: 100%; height:100%;"></div> |
228 | 228 | </div> |
229 | - <div class="tabs_1 style"> | |
230 | - <div class="tabs_list style" style="display: none"> | |
231 | - <div class="box-wr"> | |
232 | - <div class="box-all"> | |
233 | - <ul> | |
234 | - <li class="active"><a href="#tabs_1">Заявки</a></li> | |
235 | - <li><a href="#tabs_2">Вопрос-Ответ</a></li> | |
236 | - </ul> | |
229 | + <div class="section-box fix_padding_bottom_"> | |
230 | + <div class="tabs_1 style"> | |
231 | + <div class="tabs_list style" style="display: none"> | |
232 | + <div class="box-wr"> | |
233 | + <div class="box-all"> | |
234 | + <ul> | |
235 | + <li class="active"><a href="#tabs_1">Заявки</a></li> | |
236 | + <li><a href="#tabs_2">Вопрос-Ответ</a></li> | |
237 | + </ul> | |
238 | + </div> | |
237 | 239 | </div> |
240 | + | |
238 | 241 | </div> |
239 | 242 | |
240 | - </div> | |
241 | - | |
242 | - <div class="tabs_views-wr"> | |
243 | - <div class="_tabs style"> | |
244 | - <div class="box-wr"> | |
245 | - <div class="box-all"> | |
246 | - <?php | |
247 | - echo \common\modules\comment\widgets\CommentWidget::widget([ | |
248 | - 'context' => $this, | |
249 | - 'model' => $model::className(), | |
250 | - 'model_id' => $model->project_id, | |
251 | - 'comment_class' => \common\modules\comment\models\CommentProject::className(), | |
252 | - 'class_options' => [ | |
253 | - 'scenario' => is_int(\Yii::$app->user->getId()) ? \common\modules\comment\models\Comment::SCENARIO_USER : \common\modules\comment\models\Comment::SCENARIO_GUEST, | |
254 | - 'user_id' => \Yii::$app->user->getId(), | |
255 | - 'guestComment' => false, | |
256 | - 'status' => \common\modules\comment\models\CommentProject::STATUS_ACTIVE, | |
257 | - ], | |
258 | - 'list_options' => [ | |
259 | - 'view' => 'list-project-comment', | |
260 | - 'class' => 'section box tender-offer-proj-wr', | |
261 | - ], | |
262 | - 'form_options' => [ | |
263 | - 'view' => 'form-project-comment', | |
264 | - 'tag' => 'div', | |
265 | - 'class' => 'artbox_comment_form section-box tender-add-answer', | |
266 | - ], | |
267 | - 'options' => [ | |
268 | - 'tag' => false, | |
269 | - ], | |
270 | - ]); | |
271 | - ?> | |
243 | + <div class="tabs_views-wr"> | |
244 | + <div class="_tabs style"> | |
245 | + <div class="box-wr"> | |
246 | + <div class="box-all"> | |
247 | + <?php | |
248 | + echo \common\modules\comment\widgets\CommentWidget::widget([ | |
249 | + 'context' => $this, | |
250 | + 'model' => $model::className(), | |
251 | + 'model_id' => $model->project_id, | |
252 | + 'comment_class' => \common\modules\comment\models\CommentProject::className(), | |
253 | + 'class_options' => [ | |
254 | + 'scenario' => is_int(\Yii::$app->user->getId()) ? \common\modules\comment\models\Comment::SCENARIO_USER : \common\modules\comment\models\Comment::SCENARIO_GUEST, | |
255 | + 'user_id' => \Yii::$app->user->getId(), | |
256 | + 'guestComment' => false, | |
257 | + 'status' => \common\modules\comment\models\CommentProject::STATUS_ACTIVE, | |
258 | + ], | |
259 | + 'list_options' => [ | |
260 | + 'view' => 'list-project-comment', | |
261 | + 'class' => 'section box tender-offer-proj-wr', | |
262 | + ], | |
263 | + 'form_options' => [ | |
264 | + 'view' => 'form-project-comment', | |
265 | + 'tag' => 'div', | |
266 | + 'class' => 'artbox_comment_form section-box tender-add-answer', | |
267 | + ], | |
268 | + 'options' => [ | |
269 | + 'tag' => false, | |
270 | + ], | |
271 | + ]); | |
272 | + ?> | |
273 | + </div> | |
272 | 274 | </div> |
273 | 275 | </div> |
274 | - </div> | |
275 | - <div class="_tabs style"> | |
276 | - <div class="box-wr"> | |
277 | - <div class="box-all"> | |
278 | - <?php | |
279 | - echo \common\modules\comment\widgets\CommentWidget::widget([ | |
280 | - 'context' => $this, | |
281 | - 'model' => $model->className(), | |
282 | - 'model_id' => $model->project_id, | |
283 | - 'comment_class' => \common\modules\comment\models\CommentProjectAnswer::className(), | |
284 | - 'class_options' => [ | |
285 | - 'scenario' => is_int(\Yii::$app->user->getId()) ? \common\modules\comment\models\Comment::SCENARIO_USER : \common\modules\comment\models\Comment::SCENARIO_GUEST, | |
286 | - 'user_id' => \Yii::$app->user->getId(), | |
287 | - 'guestComment' => false, | |
288 | - 'status' => \common\modules\comment\models\Comment::STATUS_ACTIVE, | |
289 | - ], | |
290 | - 'provider_options' => [ | |
291 | - 'pagination' => [ | |
292 | - 'pageSize' => 2, | |
276 | + <div class="_tabs style"> | |
277 | + <div class="box-wr"> | |
278 | + <div class="box-all"> | |
279 | + <?php | |
280 | + echo \common\modules\comment\widgets\CommentWidget::widget([ | |
281 | + 'context' => $this, | |
282 | + 'model' => $model->className(), | |
283 | + 'model_id' => $model->project_id, | |
284 | + 'comment_class' => \common\modules\comment\models\CommentProjectAnswer::className(), | |
285 | + 'class_options' => [ | |
286 | + 'scenario' => is_int(\Yii::$app->user->getId()) ? \common\modules\comment\models\Comment::SCENARIO_USER : \common\modules\comment\models\Comment::SCENARIO_GUEST, | |
287 | + 'user_id' => \Yii::$app->user->getId(), | |
288 | + 'guestComment' => false, | |
289 | + 'status' => \common\modules\comment\models\Comment::STATUS_ACTIVE, | |
290 | + ], | |
291 | + 'provider_options' => [ | |
292 | + 'pagination' => [ | |
293 | + 'pageSize' => 2, | |
294 | + ], | |
295 | + ], | |
296 | + 'success_options' => [ | |
297 | + 'tag' => 'div', | |
298 | + 'content' => 'Вопрос успешно создан и появится как только будет получен ответ', | |
299 | + 'class' => 'test-class-success', | |
300 | + ], | |
301 | + 'list_options' => [ | |
302 | + 'view' => 'list-comment-question', | |
303 | + ], | |
304 | + 'form_options' => [ | |
305 | + 'view' => 'form-comment-answer', | |
306 | + 'tag' => 'span', | |
307 | + ], | |
308 | + 'options' => [ | |
309 | + 'class' => 'proektant-comments-wr fix_te style', | |
293 | 310 | ], |
294 | - ], | |
295 | - 'success_options' => [ | |
296 | - 'tag' => 'div', | |
297 | - 'content' => 'Вопрос успешно создан и появится как только будет получен ответ', | |
298 | - 'class' => 'test-class-success', | |
299 | - ], | |
300 | - 'list_options' => [ | |
301 | - 'view' => 'list-comment-question', | |
302 | - ], | |
303 | - 'form_options' => [ | |
304 | - 'view' => 'form-comment-answer', | |
305 | - 'tag' => 'span', | |
306 | - ], | |
307 | - 'options' => [ | |
308 | - 'class' => 'proektant-comments-wr fix_te style', | |
309 | - ], | |
310 | - ]); | |
311 | - ?> | |
312 | - </div> | |
313 | - </div> | |
314 | - </div> | |
311 | + ]); | |
312 | + ?> | |
313 | + </div> | |
314 | + </div> | |
315 | + </div> | |
316 | + </div> | |
315 | 317 | </div> |
316 | 318 | </div> |
317 | 319 | |
318 | 320 | |
319 | - | |
320 | - | |
321 | 321 | </div> |
322 | 322 | <script> |
323 | 323 | $(document).ready(function () { | ... | ... |
frontend/web/css/style.css
... | ... | @@ -8124,4 +8124,7 @@ li.active-menu-admin:hover a .ico_num { |
8124 | 8124 | .has-child .artbox_comment_container .comments-content:before {display: none} |
8125 | 8125 | .hidden { |
8126 | 8126 | display: none; |
8127 | +} | |
8128 | +.section-box.fix_padding_bottom_ { | |
8129 | + padding-bottom: 50px; | |
8127 | 8130 | } |
8128 | 8131 | \ No newline at end of file | ... | ... |