forked from prajapatikaml/EduSec
-
Notifications
You must be signed in to change notification settings - Fork 0
/
view.php
executable file
·67 lines (62 loc) · 2.23 KB
/
view.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?php
use yii\helpers\Html;
use yii\widgets\DetailView;
/* @var $this yii\web\View */
/* @var $model app\models\Country */
$this->title = $model->country_name;
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Configuration'), 'url' => ['default/index']];
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Country List'), 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="col-xs-12">
<div class="col-lg-8 col-sm-8 col-xs-12 no-padding edusecArLangCss"><h3 class="box-title"><i class="fa fa-search"></i> <?php echo Yii::t('app', 'View Country') ?></h3></div>
<div class="col-lg-4 col-sm-4 col-xs-12 no-padding" style="padding-top: 20px !important;">
<div class="col-xs-4 left-padding">
<?= Html::a(Yii::t('app', 'Back'), ['index'], ['class' => 'btn btn-block btn-back']) ?>
</div>
<div class="col-xs-4 left-padding">
<?= Html::a(Yii::t('app', 'Update'), ['update', 'id' => $model->country_id], ['class' => 'btn btn-block btn-info']) ?>
</div>
<div class="col-xs-4 left-padding">
<?= Html::a(Yii::t('app', 'Delete'), ['delete', 'id' => $model->country_id], [
'class' => 'btn btn-block btn-danger',
'data' => [
'confirm' => Yii::t('app', 'Are you sure you want to delete this item?'),
'method' => 'post',
],
]) ?>
</div>
</div>
</div>
<div class="col-xs-12">
<div class="box box-primary view-item">
<div class="country-view">
<?= DetailView::widget([
'model' => $model,
'options'=>['class'=>'table detail-view'],
'attributes' => [
'country_name',
[
'attribute' => 'created_at',
'value' => Yii::$app->formatter->asDateTime($model->created_at),
],
[
'attribute' => 'created_by',
//'label' => 'Created By',
'value' => $model->createdBy->user_login_id,
],
[
'attribute' => 'updated_at',
'value' => ($model->updated_at == null) ? " - ": Yii::$app->formatter->asDateTime($model->updated_at),
],
[
'attribute' => 'updated_by',
//'label' => 'Updated By',
'value' => ($model->updated_by == null) ? " - ":$model->updatedBy->user_login_id,
],
// 'is_status',
],
]) ?>
</div>
</div>
</div>