9075f464
Mihail
add action and vi...
|
1
2
|
<?php
use yii\helpers\Html;
|
93e39994
Mihail
fixed parser and ...
|
3
|
use yii\helpers\Url;
|
9075f464
Mihail
add action and vi...
|
4
5
6
7
|
use yii\grid\GridView;
use yii\grid\SerialColumn;
use yii\grid\ActionColumn;
use yii\widgets\Pjax;
|
ae27b007
Mihail
add ajax handler ...
|
8
|
use backend\assets\ParserAsset;
|
9075f464
Mihail
add action and vi...
|
9
10
11
12
13
14
|
/* @var $this yii\web\View */
/* @var $searchModel backend\models\CatalogSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
|
ae27b007
Mihail
add ajax handler ...
|
15
|
$this->title = 'Файлы на сервере';
|
9075f464
Mihail
add action and vi...
|
16
|
$this->params['breadcrumbs'][] = $this->title;
|
ae27b007
Mihail
add ajax handler ...
|
17
18
|
ParserAsset::register($this);
Pjax::begin(['id' => 'server_files_grid']);
|
9075f464
Mihail
add action and vi...
|
19
20
21
|
?>
<div class="catalog-index">
|
df629228
Mihail
console csv parsing
|
22
|
<?= Html::tag('h3', \Yii::$app->session->setFlash( 'server-files'),['class'=>'bg-success'])?>
|
9075f464
Mihail
add action and vi...
|
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
<h1><?= Html::encode($this->title) ?></h1>
<?= GridView::widget( ['dataProvider' => $dataProvider,
'columns' => [['class' => SerialColumn::className()],
[
'label' =>'Поставщик',
'value' => function ($data) {
return $data->importer;
},
],
['label' =>'Дата загрузки',
'attribute' => 'upload_time' ],
|
ae27b007
Mihail
add ajax handler ...
|
37
38
39
40
41
42
43
44
45
|
['content' => function ($model) {
//Url::to(['delete', 'id' => $model->id, 'date_update' => $model->price_date_update]);
return Html::a('<span class="glyphicon glyphicon-remove"> Удалить </span>', '#', [
'value' => $model->id,
'class' => 'deleteLink',
]);
},
],
|
9075f464
Mihail
add action and vi...
|
46
47
48
|
]] );?>
|
98533894
Mihail
merge with server
|
49
|
|
34d480b7
Mihail
temp commit - wor...
|
50
|
<?= Html::a('Запустить загрузку файлов', ['launch-crone-uploads'],['class' => 'btn btn-success']) ?>
|
9075f464
Mihail
add action and vi...
|
51
|
|
9075f464
Mihail
add action and vi...
|
52
|
|
9075f464
Mihail
add action and vi...
|
53
54
55
56
|
</div>
<?php
Pjax::end();
?>
|