Created
December 5, 2019 08:30
-
-
Save DeaVenditama/07dceb3eb357182e57363fc0cb2e3b5c to your computer and use it in GitHub Desktop.
simpeg part1.views/pegawai/view.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\widgets\DetailView; | |
/* @var $this yii\web\View */ | |
/* @var $model app\models\Pegawai */ | |
$this->title = $model->nama; | |
$this->params['breadcrumbs'][] = ['label' => 'Pegawais', 'url' => ['index']]; | |
$this->params['breadcrumbs'][] = $this->title; | |
\yii\web\YiiAsset::register($this); | |
?> | |
<div class="pegawai-view"> | |
<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('Update', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?> | |
<?= Html::a('Delete', ['delete', 'id' => $model->id], [ | |
'class' => 'btn btn-danger', | |
'data' => [ | |
'confirm' => 'Are you sure you want to delete this item?', | |
'method' => 'post', | |
], | |
]) ?> | |
</div> | |
</div> | |
<div class="box-body"> | |
<?= DetailView::widget([ | |
'model' => $model, | |
'attributes' => [ | |
'nip', | |
'nama:ntext', | |
'tempat_lahir', | |
'tanggal_lahir', | |
[ | |
'attribute' => 'agama', | |
'value' => Yii::$app->helper->getAgama($model->agama), | |
], | |
[ | |
'attribute' => 'jenis_kelamin', | |
'value' => Yii::$app->helper->getJenisKelamin($model->jenis_kelamin), | |
], | |
[ | |
'attribute' => 'nikah', | |
'value' => Yii::$app->helper->getStatusNikah($model->nikah), | |
], | |
[ | |
'attribute' => 'status_pegawai', | |
'value' => Yii::$app->helper->getStatusPegawai($model->status_pegawai), | |
], | |
'alamat:ntext', | |
'telepon', | |
'email:email', | |
], | |
]) ?> | |
</div> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment