e608c5f7
Yarik
Comment added
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
<?php
/**
* @var \yii\data\DataProviderInterface $dataProvider
* @var Comment $commentClass
*/
use common\modules\comment\models\Comment;
use common\modules\comment\widgets\CommentWidget;
if(!empty( $dataProvider )) {
?>
<div class="tender-offer-proj-title-all">Вопросов: (<?= $dataProvider->totalCount ?>)</div>
<?php
}
echo \yii\widgets\ListView::widget([
'dataProvider' => $dataProvider,
'itemView' => '_question_comment_view',
'options' => [
'tag' => 'ul',
'class' => 'proektant-comments tender_list_comm_ style',
],
'itemOptions' => [
'tag' => 'li',
'class' => CommentWidget::$baseClass[ 'comment_container' ],
'data' => [
'form' => $commentClass->formName(),
],
],
'layout' => "{items}\n{pager}",
]);
|