| Current Path : /var/www/html/sprm/backend/views/program/program-pic/ |
| Current File : /var/www/html/sprm/backend/views/program/program-pic/index.php |
<?php
use yii\helpers\Html;
use yii\grid\GridView;
use yii\widgets\Pjax;
/* @var $this yii\web\View */
/* @var $searchModel backend\models\program\ProgramPicSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = Yii::t('app', 'PIC Program');
$this->params['breadcrumbs'][] = 'Permohonan Program / Ceramah / Taklimat';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="program-pic-index">
<div class="wrapper wrapper-content animated fadeInRight">
<div class="ibox float-e-margins">
<div class="ibox-title"> <?= $this->render('_search', ['model' => $searchModel]); ?></div>
<div class="ibox-content">
<div class="table-responsive">
<?php Pjax::begin(); ?>
<?=
GridView::widget([
'dataProvider' => $dataProvider,
//'filterModel' => $searchModel,
'columns' => [
['class' => 'yii\grid\SerialColumn'],
'name', 'email', [
'attribute' => 'cat_id',
'value' => function($model) {
return \backend\models\Ref::getDesc('PROGRAM_CATEGORY', $model->cat_id);
}
],
[
'class' => 'yii\grid\ActionColumn',
'template' => '{update} {delete}',
'contentOptions' => ['class' => 'text-center', 'width' => '1%'],
'header' => 'Tindakan'
],
],
]);
?>
<?php Pjax::end(); ?>
</div>
</div>
</div>
</div>
</div>