You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.7 KiB
57 lines
1.7 KiB
<?php |
|
|
|
use yii\helpers\Html; |
|
use yii\widgets\DetailView; |
|
use common\modules\languages\entities\Language; |
|
use common\modules\languages\helpers\LanguageHelper; |
|
|
|
/* @var $this yii\web\View */ |
|
/* @var $language Language */ |
|
|
|
$this->title = $language->title; |
|
$this->params['breadcrumbs'][] = ['label' => Yii::t('languages', 'Languages'), 'url' => ['index']]; |
|
$this->params['breadcrumbs'][] = $this->title; |
|
?> |
|
<div class="language-view"> |
|
|
|
<p> |
|
<?= Html::a(Yii::t('languages','Languages'), ['index'], ['class' => 'btn btn-default']) ?> |
|
<?= Html::a(Yii::t('buttons', 'Edit'), ['update', 'id' => $language->id], ['class' => 'btn btn-primary']) ?> |
|
<?= Html::a(Yii::t('buttons', 'Delete'), ['delete', 'id' => $language->id], [ |
|
'class' => 'btn btn-danger', |
|
'data' => [ |
|
'confirm' => Yii::t('buttons', 'Are you sure you want to delete this item?'), |
|
'method' => 'post', |
|
], |
|
]) ?> |
|
</p> |
|
|
|
<div class="row"> |
|
<div class="col-md-12"> |
|
|
|
<div class="box"> |
|
<div class="box-body"> |
|
<?= DetailView::widget([ |
|
'model' => $language, |
|
'attributes' => [ |
|
'id', |
|
'title', |
|
'name', |
|
[ |
|
'attribute' => 'status', |
|
'format' => 'raw', |
|
'value' => function(Language $language) { |
|
return LanguageHelper::statusLabel($language->status); |
|
}, |
|
], |
|
'default:boolean' |
|
], |
|
]) ?> |
|
</div> |
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div>
|
|
|