1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
use hipanel\modules\hosting\grid\AggregateGridView; |
4
|
|
|
use hipanel\modules\hosting\grid\PrefixGridView; |
5
|
|
|
use hipanel\modules\hosting\menus\AggregateDetailMenu; |
6
|
|
|
use hipanel\modules\hosting\models\Aggregate; |
7
|
|
|
use hipanel\modules\hosting\models\Prefix; |
8
|
|
|
use hipanel\widgets\IndexPage; |
9
|
|
|
use hipanel\widgets\MainDetails; |
10
|
|
|
use yii\data\ActiveDataProvider; |
11
|
|
|
use yii\helpers\Html; |
12
|
|
|
use yii\web\View; |
13
|
|
|
|
14
|
|
|
/** |
15
|
|
|
* @var View $this |
16
|
|
|
* @var Aggregate $model |
17
|
|
|
* @var ActiveDataProvider[] $childPrefixesDataProvider |
18
|
|
|
*/ |
19
|
|
|
|
20
|
|
|
$this->title = Html::encode($model->ip); |
21
|
|
|
$this->params['breadcrumbs'][] = ['label' => Yii::t('hipanel.hosting.ipam', 'Aggregates'), 'url' => ['index']]; |
22
|
|
|
$this->params['breadcrumbs'][] = $this->title; |
23
|
|
|
|
24
|
|
|
?> |
25
|
|
|
|
26
|
|
|
<div class="row"> |
27
|
|
|
<div class="col-md-3"> |
28
|
|
|
<?= MainDetails::widget([ |
29
|
|
|
'title' => $this->title, |
30
|
|
|
'subTitle' => Yii::t('hipanel.hosting.ipam', 'Aggregate'), |
31
|
|
|
'menu' => AggregateDetailMenu::widget(['model' => $model], [ |
32
|
|
|
'linkTemplate' => '<a href="{url}" {linkOptions}><span class="pull-right">{icon}</span> {label}</a>', |
33
|
|
|
]), |
34
|
|
|
]) ?> |
35
|
|
|
<div class="box box-widget"> |
36
|
|
|
<div class="box-body no-padding"> |
37
|
|
|
<?= AggregateGridView::detailView([ |
38
|
|
|
'boxed' => false, |
39
|
|
|
'model' => $model, |
40
|
|
|
'columns' => [ |
41
|
|
|
'family', |
42
|
|
|
'rir', |
43
|
|
|
'utilization', |
44
|
|
|
'note', |
45
|
|
|
], |
46
|
|
|
]) ?> |
47
|
|
|
</div> |
48
|
|
|
</div> |
49
|
|
|
</div> |
50
|
|
|
|
51
|
|
|
<div class="col-md-9"> |
52
|
|
|
<?php $page = IndexPage::begin(['model' => $model, 'layout' => 'noSearch']) ?> |
53
|
|
|
|
54
|
|
|
<?php $page->beginContent('show-actions') ?> |
55
|
|
|
<h4 class="box-title" style="display: inline-block;"><?= Yii::t('hipanel.hosting.ipam', 'Child prefixes') ?></h4> |
56
|
|
|
<?php $page->endContent() ?> |
57
|
|
|
|
58
|
|
|
<?php $page->beginContent('bulk-actions') ?> |
59
|
|
|
<!-- --><?//= $page->renderBulkDeleteButton('@prefix/delete') ?> |
|
|
|
|
60
|
|
|
<?php $page->endContent() ?> |
61
|
|
|
|
62
|
|
|
<?php $page->beginContent('table') ?> |
63
|
|
|
<?php $page->beginBulkForm() ?> |
64
|
|
|
<?= PrefixGridView::widget([ |
65
|
|
|
'boxed' => false, |
66
|
|
|
'dataProvider' => $childPrefixesDataProvider, |
67
|
|
|
'filterModel' => new Prefix(), |
68
|
|
|
'tableOptions' => [ |
69
|
|
|
'class' => 'table table-striped table-bordered', |
70
|
|
|
], |
71
|
|
|
'filterRowOptions' => ['style' => 'display: none;'], |
72
|
|
|
'columns' => [ |
73
|
|
|
// 'checkbox', |
74
|
|
|
'actions', |
75
|
|
|
'ip', |
76
|
|
|
'state', |
77
|
|
|
'vrf', |
78
|
|
|
'utilization', |
79
|
|
|
'role', |
80
|
|
|
'note' |
81
|
|
|
], |
82
|
|
|
]) ?> |
83
|
|
|
<?php $page->endBulkForm() ?> |
84
|
|
|
<?php $page->endContent() ?> |
85
|
|
|
|
86
|
|
|
<?php $page::end() ?> |
87
|
|
|
</div> |
88
|
|
|
</div> |
89
|
|
|
|
Short opening tags are disabled in PHP’s default configuration. In such a case, all content of this file is output verbatim to the browser without being parsed, or executed.
As a precaution to avoid these problems better use the long opening tag
<?php
.