|
@@ -26,7 +26,7 @@ AdminLteAsset::register($this);
|
|
|
<title><?= Html::encode($this->title) ?></title>
|
|
<title><?= Html::encode($this->title) ?></title>
|
|
|
<?php $this->head() ?>
|
|
<?php $this->head() ?>
|
|
|
</head>
|
|
</head>
|
|
|
-<body class="hold-transition sidebar-mini layout-fixed">
|
|
|
|
|
|
|
+<body class="hold-transition sidebar-mini layout-fixed layout-navbar-fixed">
|
|
|
<?php $this->beginBody() ?>
|
|
<?php $this->beginBody() ?>
|
|
|
|
|
|
|
|
<div class="wrapper">
|
|
<div class="wrapper">
|
|
@@ -84,7 +84,7 @@ AdminLteAsset::register($this);
|
|
|
<div class="image">
|
|
<div class="image">
|
|
|
<img src="<?= \yii\helpers\Url::to('@web/img/avatar.png'); ?>" class="img-circle elevation-2" alt="User Image">
|
|
<img src="<?= \yii\helpers\Url::to('@web/img/avatar.png'); ?>" class="img-circle elevation-2" alt="User Image">
|
|
|
</div>
|
|
</div>
|
|
|
- <div class="info">
|
|
|
|
|
|
|
+ <div class="info d-flex w-100">
|
|
|
<a href="#" class="d-block"><?= Yii::$app->user->identity->username; ?></a>
|
|
<a href="#" class="d-block"><?= Yii::$app->user->identity->username; ?></a>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -93,14 +93,15 @@ AdminLteAsset::register($this);
|
|
|
<nav class="mt-2">
|
|
<nav class="mt-2">
|
|
|
<?php
|
|
<?php
|
|
|
echo Nav::widget([
|
|
echo Nav::widget([
|
|
|
|
|
+ 'activateParents' => true,
|
|
|
'encodeLabels' => false,
|
|
'encodeLabels' => false,
|
|
|
'options' => ['class' => 'nav nav-pills nav-sidebar flex-column', 'data-widget' => 'treeview', 'data-accordion' => 'false', 'role' => 'menu'],
|
|
'options' => ['class' => 'nav nav-pills nav-sidebar flex-column', 'data-widget' => 'treeview', 'data-accordion' => 'false', 'role' => 'menu'],
|
|
|
'items' => [
|
|
'items' => [
|
|
|
- ['label' => '<i class="nav-icon fas fa-tachometer-alt"></i> <p>Dashboard</p>', 'url' => ['/dashboard']],
|
|
|
|
|
|
|
+ ['label' => '<i class="nav-icon fas fa-tachometer-alt"></i> <p>Dashboard</p>', 'url' => ['/dashboard']], //'active' => $this->context->route;
|
|
|
['label' => '<i class="nav-icon fas fa-file-invoice"></i> <p>Bills</p>', 'url' => ['/bills']],
|
|
['label' => '<i class="nav-icon fas fa-file-invoice"></i> <p>Bills</p>', 'url' => ['/bills']],
|
|
|
['label' => '<i class="nav-icon fas fa-building"></i> <p>Organizations</p>', 'url' => ['/organizations']],
|
|
['label' => '<i class="nav-icon fas fa-building"></i> <p>Organizations</p>', 'url' => ['/organizations']],
|
|
|
['label' => '<i class="nav-icon fas fa-address-book"></i> <p>Our contacts</p>', 'url' => ['/contacts']],
|
|
['label' => '<i class="nav-icon fas fa-address-book"></i> <p>Our contacts</p>', 'url' => ['/contacts']],
|
|
|
- ['label' => '<i class="nav-icon fas fa-cogs"></i> <p>Settings</p>', 'url' => ['/settings']],
|
|
|
|
|
|
|
+ ['label' => '<i class="nav-icon fas fa-cogs"></i> <p>Settings</p>', 'url' => ['settings/'], 'active' => Yii::$app->controller->id == 'settings'],
|
|
|
],
|
|
],
|
|
|
]);
|
|
]);
|
|
|
?>
|
|
?>
|
|
@@ -132,19 +133,22 @@ AdminLteAsset::register($this);
|
|
|
</div><!-- /.container-fluid -->
|
|
</div><!-- /.container-fluid -->
|
|
|
</section>
|
|
</section>
|
|
|
|
|
|
|
|
- <div class="container">
|
|
|
|
|
|
|
+ <section class="content">
|
|
|
|
|
+ <div class="container-fluid">
|
|
|
|
|
+ <?= Alert::widget() ?>
|
|
|
|
|
+ <?= $content ?>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </section>
|
|
|
|
|
|
|
|
- <?= Alert::widget() ?>
|
|
|
|
|
- <?= $content ?>
|
|
|
|
|
</div>
|
|
</div>
|
|
|
-</div>
|
|
|
|
|
|
|
|
|
|
-<footer class="main-footer">
|
|
|
|
|
- <div class="float-right d-none d-sm-block">
|
|
|
|
|
- <p class="pull-right">v: <?= Yii::$app->version; ?></p>
|
|
|
|
|
- </div>
|
|
|
|
|
- <p class="pull-left m-0">© <?= Yii::$app->name; ?> <?= date('Y') ?></p>
|
|
|
|
|
-</footer>
|
|
|
|
|
|
|
+ <footer class="main-footer">
|
|
|
|
|
+ <div class="float-right d-none d-sm-block">
|
|
|
|
|
+ <p class="pull-right">v: <?= Yii::$app->version; ?></p>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <p class="pull-left m-0">© <?= Yii::$app->name; ?> <?= date('Y') ?></p>
|
|
|
|
|
+ </footer>
|
|
|
|
|
+</div>
|
|
|
|
|
|
|
|
<?php $this->endBody() ?>
|
|
<?php $this->endBody() ?>
|
|
|
</body>
|
|
</body>
|