<?php

use backend\models\Frapl011a;
use yii\helpers\Html;
use yii\helpers\Url;
use yii\grid\ActionColumn;
use yii\grid\GridView;

/** @var yii\web\View $this */
/** @var backend\models\Frapl011aSearch $searchModel */
/** @var yii\data\ActiveDataProvider $dataProvider */

$this->title = 'Frapl011as';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="frapl011a-index">

    <h1><?= Html::encode($this->title) ?></h1>

    <p>
        <?= Html::a('Create Frapl011a', ['create'], ['class' => 'btn btn-success']) ?>
    </p>

    <?php // echo $this->render('_search', ['model' => $searchModel]); ?>

    <?= GridView::widget([
        'dataProvider' => $dataProvider,
        'filterModel' => $searchModel,
        'columns' => [
            ['class' => 'yii\grid\SerialColumn'],

            'FRAPL01_UUID',
            'FRAPL01_1A_UUID',
            'FRAPL01_1A_NAMA',
            'FRAPL01_1A_NIK',
            'FRAPL01_1A_TGL_LAHIR',
            //'FRAPL01_1A_TPT_LAHIR',
            //'FRAPL01_1A_JK',
            //'FRAPL01_1A_KEBANGSAAN',
            //'FRAPL01_1A_ALAMAT',
            //'FRAPL01_1A_POS',
            //'FRAPL01_1A_TEL_RUMAH',
            //'FRAPL01_1A_TEL_KANTOR',
            //'FRAPL01_1A_HP',
            //'FRAPL01_1A_EMAIL:email',
            //'FRAPL01_1A_JENJANG',
            //'FRAPL01_1A_JURUSAN',
            //'FRAPL01_1A_KAMPUS',
            //'FRAPL01_1A_THN_LULUS',
            //'CREATED',
            //'USERNAME',
            [
                'class' => ActionColumn::className(),
                'urlCreator' => function ($action, Frapl011a $model, $key, $index, $column) {
                    return Url::toRoute([$action, 'FRAPL01_1A_UUID' => $model->FRAPL01_1A_UUID]);
                 }
            ],
        ],
    ]); ?>


</div>
