forked from spanjeta/yii2-backup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_list.php
39 lines (33 loc) · 983 Bytes
/
_list.php
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
33
34
35
36
37
38
39
<?php
use yii\helpers\Html;
use yii\grid\GridView;
echo GridView::widget([
'id' => 'install-grid',
'dataProvider' => $dataProvider,
'columns' => array(
'name',
'size:size',
'create_time',
'modified_time:relativeTime',
array(
'class' => 'yii\grid\ActionColumn',
'template' => '{restore}',
'buttons' => ['restore' => function ($url, $model, $key) {
return Html::a('<span class="glyphicon glyphicon-circle-arrow-left"></span>', $url, ['title' => 'Restore']);
}
],
),
array(
'class' => 'yii\grid\ActionColumn',
'template' => '{download}',
'buttons' => ['download' => function ($url, $model, $key) {
return Html::a('<span class="glyphicon glyphicon-download"></span>', $url, ['title' => 'Download']);
}
],
),
array(
'class' => 'yii\grid\ActionColumn',
'template' => '{delete}',
),
),
]); ?>