cc658b4c
Yarik
Big commit
|
1
|
<?php
|
21aedefe
Yarik
Another one admin...
|
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
use yii\helpers\Html;
use yii\widgets\DetailView;
/**
* @var yii\web\View $this
* @var common\models\Certificate $model
*/
$this->title = $model->name;
$this->params[ 'breadcrumbs' ][] = [
'label' => 'Certificates',
'url' => [ 'index' ],
];
$this->params[ 'breadcrumbs' ][] = $this->title;
|
cc658b4c
Yarik
Big commit
|
16
17
|
?>
<div class="certificate-view">
|
21aedefe
Yarik
Another one admin...
|
18
|
|
cc658b4c
Yarik
Big commit
|
19
|
<h1><?= Html::encode($this->title) ?></h1>
|
21aedefe
Yarik
Another one admin...
|
20
|
|
cc658b4c
Yarik
Big commit
|
21
|
<p>
|
21aedefe
Yarik
Another one admin...
|
22
23
24
25
26
27
28
29
|
<?= Html::a('Update', [
'update',
'id' => $model->certificate_id,
], [ 'class' => 'btn btn-primary' ]) ?>
<?= Html::a('Delete', [
'delete',
'id' => $model->certificate_id,
], [
|
cc658b4c
Yarik
Big commit
|
30
|
'class' => 'btn btn-danger',
|
21aedefe
Yarik
Another one admin...
|
31
|
'data' => [
|
cc658b4c
Yarik
Big commit
|
32
|
'confirm' => 'Are you sure you want to delete this item?',
|
21aedefe
Yarik
Another one admin...
|
33
|
'method' => 'post',
|
cc658b4c
Yarik
Big commit
|
34
35
36
|
],
]) ?>
</p>
|
21aedefe
Yarik
Another one admin...
|
37
|
|
cc658b4c
Yarik
Big commit
|
38
|
<?= DetailView::widget([
|
21aedefe
Yarik
Another one admin...
|
39
|
'model' => $model,
|
cc658b4c
Yarik
Big commit
|
40
41
42
|
'attributes' => [
'certificate_id',
'name',
|
21aedefe
Yarik
Another one admin...
|
43
44
45
46
47
|
[
'attribute' => 'link',
'value' => Html::a($model->link, $model->getCertificateUrl()),
'format' => 'html',
],
|
cc658b4c
Yarik
Big commit
|
48
49
50
51
|
],
]) ?>
</div>
|