Created
May 29, 2014 20:52
-
-
Save nsanden/b09504c3f521f4bd3926 to your computer and use it in GitHub Desktop.
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 yii\web\View $this | |
* @var common\models\cList $model | |
*/ | |
$this->title = $model->name; | |
$this->params['breadcrumbs'][] = ['label' => 'Lists', 'url' => ['index']]; | |
$this->params['breadcrumbs'][] = $this->title; | |
?> | |
<div class="panel"> | |
<div class="panel-heading"> | |
<span class="panel-title"><?= Html::encode($this->title) ?></span> | |
</div> | |
<div class="panel-body"> | |
<div class="c-list-view"> | |
<p> | |
<?= 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', | |
], | |
]) ?> | |
</p> | |
<?= DetailView::widget([ | |
'model' => $model, | |
'attributes' => [ | |
'id', | |
'name', | |
'deleted', | |
'updated_at', | |
'created_at', | |
], | |
]) ?> | |
</div> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment