Переглянути джерело

fix history schet download link

Oleg K 4 роки тому
батько
коміт
913efc405c
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      views/history/index.php

+ 1 - 1
views/history/index.php

@@ -30,7 +30,7 @@ $this->params['breadcrumbs'][] = $this->title;
                          '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']);
+                            $link = \yii\bootstrap4\Html::a(\rmrevin\yii\fontawesome\FAS::icon('download', ['class'=>'text-warning']), \yii\helpers\Url::to(['history/download', 'type'=>'schet', '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>';
                          },