Commit f6d95d36 authored by Shakarim Sapa's avatar Shakarim Sapa

- Кнопка удаления файла кастомизирована;

parent 2d2ba812
...@@ -25,7 +25,16 @@ echo GridView::widget([ ...@@ -25,7 +25,16 @@ echo GridView::widget([
[ [
'class' => 'yii\grid\ActionColumn', 'class' => 'yii\grid\ActionColumn',
'template' => '{delete}' 'template' => '{delete}',
'buttons' => [
'delete' => function($url, $model) {
return Html::tag(
'a',
Html::tag('span', '', ['class' => 'glyphicon glyphicon-trash']),
["href" => Yii::$app->urlManager->createUrl(['/analyticsSchool/lesson-admin/deletefile', 'id' => $model->id])]
);
}
]
], ],
], ],
]); ]);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment