Created
December 5, 2019 08:18
-
-
Save DeaVenditama/2bd88a0fb7e8046182ba00b903e455de to your computer and use it in GitHub Desktop.
views/pegawai/index.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use yii\helpers\Html; | |
use yii\grid\GridView; | |
/* @var $this yii\web\View */ | |
/* @var $searchModel app\models\PegawaiSearch */ | |
/* @var $dataProvider yii\data\ActiveDataProvider */ | |
$this->title = 'Pegawai'; | |
$this->params['breadcrumbs'][] = $this->title; | |
?> | |
<div class="pegawai-index"> | |
<div class="box box-success"> | |
<div class="box-header with-border"> | |
<h3 class="box-title"><?= Html::encode($this->title) ?></h3> | |
<div class="box-tools pull-right"> | |
<?= Html::a('Tambah Pegawai', ['create'], ['class' => 'btn btn-success']) ?> | |
</div> | |
</div> | |
<div class="box-body"> | |
<?= GridView::widget([ | |
'dataProvider' => $dataProvider, | |
'filterModel' => $searchModel, | |
'columns' => [ | |
['class' => 'yii\grid\SerialColumn'], | |
'id', | |
'nip', | |
'nama:ntext', | |
'tempat_lahir', | |
'tanggal_lahir', | |
//'agama', | |
//'jenis_kelamin', | |
//'nikah', | |
//'status_pegawai', | |
//'alamat:ntext', | |
//'telepon', | |
//'email:email', | |
//'salt:ntext', | |
//'password:ntext', | |
//'created_date', | |
//'created_by', | |
//'updated_date', | |
//'updated_by', | |
['class' => 'yii\grid\ActionColumn'], | |
], | |
]); ?> | |
</div> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment