|
@@ -1,6 +1,9 @@
|
|
|
<?php
|
|
|
/* @var $this yii\web\View */
|
|
|
|
|
|
+use yii\grid\GridView;
|
|
|
+use yii\widgets\ListView;
|
|
|
+
|
|
|
$this->title = 'Історія платежів';
|
|
|
$this->params['breadcrumbs'][] = $this->title;
|
|
|
?>
|
|
@@ -17,36 +20,21 @@ $this->params['breadcrumbs'][] = $this->title;
|
|
|
<thead>
|
|
|
<tr>
|
|
|
<th style="width: 10px">#</th>
|
|
|
- <th>Дата</th>
|
|
|
+ <th>Назва</th>
|
|
|
<th></th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
- <tr>
|
|
|
- <td>1</td>
|
|
|
- <td>10.10.2021</td>
|
|
|
- <td class="w-25 text-right" width="30%"><a class="text-muted" href="#" data-toggle="tooltip" title="Завантажити"><i class="fas fa-download text-warning"></i></a></td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td>2</td>
|
|
|
- <td>10.10.2021</td>
|
|
|
- <td class="w-25 text-right" width="30%"><a class="text-muted" href="#" data-toggle="tooltip" title="Завантажити"><i class="fas fa-download text-warning"></i></a></td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td>3</td>
|
|
|
- <td>10.10.2021</td>
|
|
|
- <td class="w-25 text-right" width="30%"><a class="text-muted" href="#" data-toggle="tooltip" title="Завантажити"><i class="fas fa-download text-warning"></i></a></td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td>4</td>
|
|
|
- <td>10.10.2021</td>
|
|
|
- <td class="w-25 text-right" width="30%"><a class="text-muted" href="#" data-toggle="tooltip" title="Завантажити"><i class="fas fa-download text-warning"></i></a></td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td>5</td>
|
|
|
- <td>10.10.2021</td>
|
|
|
- <td class="w-25 text-right" width="30%"><a class="text-muted" href="#" data-toggle="tooltip" title="Завантажити"><i class="fas fa-download text-warning"></i></a></td>
|
|
|
- </tr>
|
|
|
+ <?= ListView::widget([
|
|
|
+ 'dataProvider' => $scheta,
|
|
|
+ 'layout' => "{items}",
|
|
|
+ //'itemOptions' => ['class' => 'item', 'style' => 'margin-bottom: 5px;'],
|
|
|
+ 'itemView' => function ($model, $key, $index, $widget) {
|
|
|
+ $link = \yii\bootstrap4\Html::a(\rmrevin\yii\fontawesome\FAS::icon('download', ['class'=>'text-warning']), \yii\helpers\Url::to(['history/download', 'type'=>'act', 'file' => basename($model)]), ['class'=>'text-muted','data-toggle'=>'tooltip', 'title'=>'Завантажити', 'target'=>'_blank']);
|
|
|
+ //return '<tr><td>' . ($key+1) . '</td><td>' . basename($model) . '</td><td class="w-25 text-right" width="30%"><a class="text-muted" href="#" data-toggle="tooltip" title="Завантажити"><i class="fas fa-download text-warning"></i></a></td>';
|
|
|
+ return '<tr><td>' . ($key+1) . '</td><td>' . basename($model) . '</td><td class="w-25 text-right" width="30%">'.$link.'</td>';
|
|
|
+ },
|
|
|
+ ]) ?>
|
|
|
</tbody>
|
|
|
</table>
|
|
|
</div>
|
|
@@ -69,31 +57,16 @@ $this->params['breadcrumbs'][] = $this->title;
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
- <tr>
|
|
|
- <td>1</td>
|
|
|
- <td>10.10.2021</td>
|
|
|
- <td class="w-25 text-right" width="30%"><a class="text-muted" href="#" data-toggle="tooltip" title="Завантажити"><i class="fas fa-download text-warning"></i></a></td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td>2</td>
|
|
|
- <td>10.10.2021</td>
|
|
|
- <td class="w-25 text-right" width="30%"><a class="text-muted" href="#" data-toggle="tooltip" title="Завантажити"><i class="fas fa-download text-warning"></i></a></td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td>3</td>
|
|
|
- <td>10.10.2021</td>
|
|
|
- <td class="w-25 text-right" width="30%"><a class="text-muted" href="#" data-toggle="tooltip" title="Завантажити"><i class="fas fa-download text-warning"></i></a></td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td>4</td>
|
|
|
- <td>10.10.2021</td>
|
|
|
- <td class="w-25 text-right" width="30%"><a class="text-muted" href="#" data-toggle="tooltip" title="Завантажити"><i class="fas fa-download text-warning"></i></a></td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td>5</td>
|
|
|
- <td>10.10.2021</td>
|
|
|
- <td class="w-25 text-right" width="30%"><a class="text-muted" href="#" data-toggle="tooltip" title="Завантажити"><i class="fas fa-download text-warning"></i></a></td>
|
|
|
- </tr>
|
|
|
+ <?= ListView::widget([
|
|
|
+ 'dataProvider' => $actu,
|
|
|
+ 'layout' => "{items}",
|
|
|
+ //'itemOptions' => ['class' => 'item', 'style' => 'margin-bottom: 5px;'],
|
|
|
+ 'itemView' => function ($model, $key, $index, $widget) {
|
|
|
+ $link = \yii\bootstrap4\Html::a(\rmrevin\yii\fontawesome\FAS::icon('download', ['class'=>'text-warning']), \yii\helpers\Url::to(['history/download', 'type'=>'act', 'file' => basename($model)]), ['class'=>'text-muted','data-toggle'=>'tooltip', 'title'=>'Завантажити', 'target'=>'_blank']);
|
|
|
+ //return '<tr><td>' . ($key+1) . '</td><td>' . basename($model) . '</td><td class="w-25 text-right" width="30%"><a class="text-muted" href="#" data-toggle="tooltip" title="Завантажити"><i class="fas fa-download text-warning"></i></a></td>';
|
|
|
+ return '<tr><td>' . ($key+1) . '</td><td>' . basename($model) . '</td><td class="w-25 text-right" width="30%">'.$link.'</td>';
|
|
|
+ },
|
|
|
+ ]) ?>
|
|
|
</tbody>
|
|
|
</table>
|
|
|
</div>
|