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.

50 lines
1.5 KiB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. <?php
  2. /* @var $this \yii\web\View */
  3. /* @var $content string */
  4. use backend\assets\AppAsset;
  5. use yii\helpers\Html;
  6. use yii\widgets\Breadcrumbs;
  7. use common\widgets\Alert;
  8. AppAsset::register($this);
  9. ?>
  10. <?php $this->beginPage() ?>
  11. <!DOCTYPE html>
  12. <html lang="<?= Yii::$app->language ?>">
  13. <head>
  14. <meta charset="<?= Yii::$app->charset ?>">
  15. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  16. <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  17. <?php $this->registerCsrfMetaTags() ?>
  18. <title><?= Html::encode($this->title) ?></title>
  19. <?php $this->head() ?>
  20. </head>
  21. <body class="hold-transition skin-blue-light sidebar-mini">
  22. <?php $this->beginBody() ?>
  23. <div class="wrapper">
  24. <?= $this->render('header') ?>
  25. <?= $this->render('sidebar') ?>
  26. <div class="content-wrapper">
  27. <?php
  28. if (Yii::$app->session->hasFlash('error') || Yii::$app->session->hasFlash('success')) {
  29. echo Alert::widget();
  30. }
  31. ?>
  32. <section class="content-header">
  33. <?= $this->render('breadcrumb') ?>
  34. </section>
  35. <section class="content">
  36. <?= $content ?>
  37. </section>
  38. </div>
  39. <?= $this->render('footer') ?>
  40. </div>
  41. <?php $this->endBody() ?>
  42. </body>
  43. </html>
  44. <?php $this->endPage() ?>