Commit 03efb276 authored by Shakarim Sapa's avatar Shakarim Sapa

- Добавлено формирование таблицы файлов через GridView

parent 54fa0a47
<?php
use \common\modules\analyticsSchool\models\AnalyticsSchoolLesson;
use \yii\grid\GridView;
use \yii\data\ActiveDataProvider;
use \yii\bootstrap\Html;
/**
* @var AnalyticsSchoolLesson $model
* @var ActiveDataProvider $dataProvider
*/
?>
<table>
<thead>
echo GridView::widget([
'dataProvider' => $dataProvider,
'options' => [
'id' => 'lesson-file'
],
'columns' => [
'title:string',
'file:string',
</thead>
</table>
['class' => 'yii\grid\ActionColumn'],
],
]);
echo Html::button('Добавить файл', ['id' => 'add_file', 'class' => 'btn btn-primary pull-right']);
?>
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