create project
This commit is contained in:
42
frontend/views/layouts/content.php
Normal file
42
frontend/views/layouts/content.php
Normal file
@ -0,0 +1,42 @@
|
||||
<?php
|
||||
/* @var $content string */
|
||||
|
||||
use yii\bootstrap4\Breadcrumbs;
|
||||
?>
|
||||
<div class="content-wrapper">
|
||||
<!-- Content Header (Page header) -->
|
||||
<div class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row mb-2">
|
||||
<div class="col-sm-6">
|
||||
<h1 class="m-0">
|
||||
<?php
|
||||
if (!is_null($this->title)) {
|
||||
echo \yii\helpers\Html::encode($this->title);
|
||||
} else {
|
||||
echo \yii\helpers\Inflector::camelize($this->context->id);
|
||||
}
|
||||
?>
|
||||
</h1>
|
||||
</div><!-- /.col -->
|
||||
<div class="col-sm-6">
|
||||
<?php
|
||||
echo Breadcrumbs::widget([
|
||||
'links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : [],
|
||||
'options' => [
|
||||
'class' => 'breadcrumb float-sm-right'
|
||||
]
|
||||
]);
|
||||
?>
|
||||
</div><!-- /.col -->
|
||||
</div><!-- /.row -->
|
||||
</div><!-- /.container-fluid -->
|
||||
</div>
|
||||
<!-- /.content-header -->
|
||||
|
||||
<!-- Main content -->
|
||||
<section class="content">
|
||||
<?= $content ?><!-- /.container-fluid -->
|
||||
</section>
|
||||
<!-- /.content -->
|
||||
</div>
|
5
frontend/views/layouts/control-sidebar.php
Normal file
5
frontend/views/layouts/control-sidebar.php
Normal file
@ -0,0 +1,5 @@
|
||||
<!-- Control Sidebar -->
|
||||
<aside class="control-sidebar control-sidebar-dark">
|
||||
<!-- Control sidebar content goes here -->
|
||||
</aside>
|
||||
<!-- /.control-sidebar -->
|
7
frontend/views/layouts/footer.php
Normal file
7
frontend/views/layouts/footer.php
Normal file
@ -0,0 +1,7 @@
|
||||
<footer class="main-footer">
|
||||
<strong>Copyright © 2014-2021 <a href="https://adminlte.io">AdminLTE.io</a>.</strong>
|
||||
All rights reserved.
|
||||
<div class="float-right d-none d-sm-inline-block">
|
||||
<b>Version</b> 3.1.0
|
||||
</div>
|
||||
</footer>
|
40
frontend/views/layouts/main-login.php
Normal file
40
frontend/views/layouts/main-login.php
Normal file
@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
/* @var $this \yii\web\View */
|
||||
/* @var $content string */
|
||||
|
||||
use yii\helpers\Html;
|
||||
|
||||
\hail812\adminlte3\assets\AdminLteAsset::register($this);
|
||||
$this->registerCssFile('https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700');
|
||||
$this->registerCssFile('https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css');
|
||||
\hail812\adminlte3\assets\PluginAsset::register($this)->add(['fontawesome', 'icheck-bootstrap']);
|
||||
?>
|
||||
<?php $this->beginPage() ?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="<?= Yii::$app->charset ?>">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<!-- Tell the browser to be responsive to screen width -->
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<?php $this->registerCsrfMetaTags() ?>
|
||||
<title><?= Html::encode($this->title) ?></title>
|
||||
<?php $this->head() ?>
|
||||
</head>
|
||||
<body class="hold-transition login-page">
|
||||
<?php $this->beginBody() ?>
|
||||
<div class="login-box">
|
||||
<div class="login-logo">
|
||||
<b>Генератор чеков</b>
|
||||
</div>
|
||||
<!-- /.login-logo -->
|
||||
|
||||
<?= $content ?>
|
||||
</div>
|
||||
<!-- /.login-box -->
|
||||
|
||||
<?php $this->endBody() ?>
|
||||
</body>
|
||||
</html>
|
||||
<?php $this->endPage() ?>
|
54
frontend/views/layouts/main.php
Normal file
54
frontend/views/layouts/main.php
Normal file
@ -0,0 +1,54 @@
|
||||
<?php
|
||||
|
||||
/* @var $this \yii\web\View */
|
||||
/* @var $content string */
|
||||
|
||||
use yii\helpers\Html;
|
||||
|
||||
\hail812\adminlte3\assets\FontAwesomeAsset::register($this);
|
||||
\hail812\adminlte3\assets\AdminLteAsset::register($this);
|
||||
$this->registerCssFile('https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback');
|
||||
|
||||
$assetDir = Yii::$app->assetManager->getPublishedUrl('@vendor/almasaeed2010/adminlte/dist');
|
||||
|
||||
$publishedRes = Yii::$app->assetManager->publish('@vendor/hail812/yii2-adminlte3/src/web/js');
|
||||
$this->registerJsFile($publishedRes[1].'/control_sidebar.js', ['depends' => '\hail812\adminlte3\assets\AdminLteAsset']);
|
||||
?>
|
||||
<?php $this->beginPage() ?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="<?= Yii::$app->language ?>">
|
||||
<head>
|
||||
<meta charset="<?= Yii::$app->charset ?>">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<?php $this->registerCsrfMetaTags() ?>
|
||||
<title><?= Html::encode($this->title) ?></title>
|
||||
<?php $this->head() ?>
|
||||
</head>
|
||||
<body class="hold-transition sidebar-mini">
|
||||
<?php $this->beginBody() ?>
|
||||
|
||||
<div class="wrapper">
|
||||
<!-- Navbar -->
|
||||
<?= $this->render('navbar', ['assetDir' => $assetDir]) ?>
|
||||
<!-- /.navbar -->
|
||||
|
||||
<!-- Main Sidebar Container -->
|
||||
<?= $this->render('sidebar', ['assetDir' => $assetDir]) ?>
|
||||
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<?= $this->render('content', ['content' => $content, 'assetDir' => $assetDir]) ?>
|
||||
<!-- /.content-wrapper -->
|
||||
|
||||
<!-- Control Sidebar -->
|
||||
<?= $this->render('control-sidebar') ?>
|
||||
<!-- /.control-sidebar -->
|
||||
|
||||
<!-- Main Footer -->
|
||||
<?= $this->render('footer') ?>
|
||||
</div>
|
||||
|
||||
<?php $this->endBody() ?>
|
||||
</body>
|
||||
</html>
|
||||
<?php $this->endPage() ?>
|
191
frontend/views/layouts/navbar.php
Normal file
191
frontend/views/layouts/navbar.php
Normal file
@ -0,0 +1,191 @@
|
||||
<?php
|
||||
|
||||
use yii\helpers\Html;
|
||||
|
||||
?>
|
||||
<!-- Navbar -->
|
||||
<nav class="main-header navbar navbar-expand navbar-white navbar-light">
|
||||
<!-- Left navbar links -->
|
||||
<ul class="navbar-nav">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" data-widget="pushmenu" href="#" role="button"><i class="fas fa-bars"></i></a>
|
||||
</li>
|
||||
<li class="nav-item d-none d-sm-inline-block">
|
||||
<a href="<?=\yii\helpers\Url::home()?>" class="nav-link">Home</a>
|
||||
</li>
|
||||
<li class="nav-item d-none d-sm-inline-block">
|
||||
<a href="#" class="nav-link">Contact</a>
|
||||
</li>
|
||||
<li class="nav-item dropdown">
|
||||
<a id="dropdownSubMenu1" href="#" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="nav-link dropdown-toggle">Dropdown</a>
|
||||
<ul aria-labelledby="dropdownSubMenu1" class="dropdown-menu border-0 shadow">
|
||||
<li><a href="#" class="dropdown-item">Some action </a></li>
|
||||
<li><a href="#" class="dropdown-item">Some other action</a></li>
|
||||
<li><?= Html::a('Sign out', ['site/logout'], ['data-method' => 'post', 'class' => 'dropdown-item']) ?></li>
|
||||
|
||||
<li class="dropdown-divider"></li>
|
||||
|
||||
<!-- Level two dropdown-->
|
||||
<li class="dropdown-submenu dropdown-hover">
|
||||
<a id="dropdownSubMenu2" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="dropdown-item dropdown-toggle">Hover for action</a>
|
||||
<ul aria-labelledby="dropdownSubMenu2" class="dropdown-menu border-0 shadow">
|
||||
<li>
|
||||
<a tabindex="-1" href="#" class="dropdown-item">level 2</a>
|
||||
</li>
|
||||
|
||||
<!-- Level three dropdown-->
|
||||
<li class="dropdown-submenu">
|
||||
<a id="dropdownSubMenu3" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="dropdown-item dropdown-toggle">level 2</a>
|
||||
<ul aria-labelledby="dropdownSubMenu3" class="dropdown-menu border-0 shadow">
|
||||
<li><a href="#" class="dropdown-item">3rd level</a></li>
|
||||
<li><a href="#" class="dropdown-item">3rd level</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<!-- End Level three -->
|
||||
|
||||
<li><a href="#" class="dropdown-item">level 2</a></li>
|
||||
<li><a href="#" class="dropdown-item">level 2</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<!-- End Level two -->
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<!-- SEARCH FORM -->
|
||||
<form class="form-inline ml-3">
|
||||
<div class="input-group input-group-sm">
|
||||
<input class="form-control form-control-navbar" type="search" placeholder="Search" aria-label="Search">
|
||||
<div class="input-group-append">
|
||||
<button class="btn btn-navbar" type="submit">
|
||||
<i class="fas fa-search"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<!-- Right navbar links -->
|
||||
<ul class="navbar-nav ml-auto">
|
||||
<!-- Navbar Search -->
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" data-widget="navbar-search" href="#" role="button">
|
||||
<i class="fas fa-search"></i>
|
||||
</a>
|
||||
<div class="navbar-search-block">
|
||||
<form class="form-inline">
|
||||
<div class="input-group input-group-sm">
|
||||
<input class="form-control form-control-navbar" type="search" placeholder="Search" aria-label="Search">
|
||||
<div class="input-group-append">
|
||||
<button class="btn btn-navbar" type="submit">
|
||||
<i class="fas fa-search"></i>
|
||||
</button>
|
||||
<button class="btn btn-navbar" type="button" data-widget="navbar-search">
|
||||
<i class="fas fa-times"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<!-- Messages Dropdown Menu -->
|
||||
<li class="nav-item dropdown">
|
||||
<a class="nav-link" data-toggle="dropdown" href="#">
|
||||
<i class="far fa-comments"></i>
|
||||
<span class="badge badge-danger navbar-badge">3</span>
|
||||
</a>
|
||||
<div class="dropdown-menu dropdown-menu-lg dropdown-menu-right">
|
||||
<a href="#" class="dropdown-item">
|
||||
<!-- Message Start -->
|
||||
<div class="media">
|
||||
<img src="<?=$assetDir?>/img/user1-128x128.jpg" alt="User Avatar" class="img-size-50 mr-3 img-circle">
|
||||
<div class="media-body">
|
||||
<h3 class="dropdown-item-title">
|
||||
Brad Diesel
|
||||
<span class="float-right text-sm text-danger"><i class="fas fa-star"></i></span>
|
||||
</h3>
|
||||
<p class="text-sm">Call me whenever you can...</p>
|
||||
<p class="text-sm text-muted"><i class="far fa-clock mr-1"></i> 4 Hours Ago</p>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Message End -->
|
||||
</a>
|
||||
<div class="dropdown-divider"></div>
|
||||
<a href="#" class="dropdown-item">
|
||||
<!-- Message Start -->
|
||||
<div class="media">
|
||||
<img src="<?=$assetDir?>/img/user8-128x128.jpg" alt="User Avatar" class="img-size-50 img-circle mr-3">
|
||||
<div class="media-body">
|
||||
<h3 class="dropdown-item-title">
|
||||
John Pierce
|
||||
<span class="float-right text-sm text-muted"><i class="fas fa-star"></i></span>
|
||||
</h3>
|
||||
<p class="text-sm">I got your message bro</p>
|
||||
<p class="text-sm text-muted"><i class="far fa-clock mr-1"></i> 4 Hours Ago</p>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Message End -->
|
||||
</a>
|
||||
<div class="dropdown-divider"></div>
|
||||
<a href="#" class="dropdown-item">
|
||||
<!-- Message Start -->
|
||||
<div class="media">
|
||||
<img src="<?=$assetDir?>/img/user3-128x128.jpg" alt="User Avatar" class="img-size-50 img-circle mr-3">
|
||||
<div class="media-body">
|
||||
<h3 class="dropdown-item-title">
|
||||
Nora Silvester
|
||||
<span class="float-right text-sm text-warning"><i class="fas fa-star"></i></span>
|
||||
</h3>
|
||||
<p class="text-sm">The subject goes here</p>
|
||||
<p class="text-sm text-muted"><i class="far fa-clock mr-1"></i> 4 Hours Ago</p>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Message End -->
|
||||
</a>
|
||||
<div class="dropdown-divider"></div>
|
||||
<a href="#" class="dropdown-item dropdown-footer">See All Messages</a>
|
||||
</div>
|
||||
</li>
|
||||
<!-- Notifications Dropdown Menu -->
|
||||
<li class="nav-item dropdown">
|
||||
<a class="nav-link" data-toggle="dropdown" href="#">
|
||||
<i class="far fa-bell"></i>
|
||||
<span class="badge badge-warning navbar-badge">15</span>
|
||||
</a>
|
||||
<div class="dropdown-menu dropdown-menu-lg dropdown-menu-right">
|
||||
<span class="dropdown-header">15 Notifications</span>
|
||||
<div class="dropdown-divider"></div>
|
||||
<a href="#" class="dropdown-item">
|
||||
<i class="fas fa-envelope mr-2"></i> 4 new messages
|
||||
<span class="float-right text-muted text-sm">3 mins</span>
|
||||
</a>
|
||||
<div class="dropdown-divider"></div>
|
||||
<a href="#" class="dropdown-item">
|
||||
<i class="fas fa-users mr-2"></i> 8 friend requests
|
||||
<span class="float-right text-muted text-sm">12 hours</span>
|
||||
</a>
|
||||
<div class="dropdown-divider"></div>
|
||||
<a href="#" class="dropdown-item">
|
||||
<i class="fas fa-file mr-2"></i> 3 new reports
|
||||
<span class="float-right text-muted text-sm">2 days</span>
|
||||
</a>
|
||||
<div class="dropdown-divider"></div>
|
||||
<a href="#" class="dropdown-item dropdown-footer">See All Notifications</a>
|
||||
</div>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<?= Html::a('<i class="fas fa-sign-out-alt"></i>', ['/site/logout'], ['data-method' => 'post', 'class' => 'nav-link']) ?>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" data-widget="fullscreen" href="#" role="button">
|
||||
<i class="fas fa-expand-arrows-alt"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" data-widget="control-sidebar" data-slide="true" href="#" role="button">
|
||||
<i class="fas fa-th-large"></i>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<!-- /.navbar -->
|
87
frontend/views/layouts/sidebar.php
Normal file
87
frontend/views/layouts/sidebar.php
Normal file
@ -0,0 +1,87 @@
|
||||
<aside class="main-sidebar sidebar-dark-primary elevation-4">
|
||||
<!-- Brand Logo -->
|
||||
<a href="index3.html" class="brand-link">
|
||||
<img src="<?=$assetDir?>/img/AdminLTELogo.png" alt="AdminLTE Logo" class="brand-image img-circle elevation-3" style="opacity: .8">
|
||||
<span class="brand-text font-weight-light">Генератор чеков</span>
|
||||
</a>
|
||||
|
||||
<!-- Sidebar -->
|
||||
<div class="sidebar">
|
||||
<!-- Sidebar user panel (optional) -->
|
||||
<div class="user-panel mt-3 pb-3 mb-3 d-flex">
|
||||
<div class="image">
|
||||
<img src="<?=$assetDir?>/img/user2-160x160.jpg" class="img-circle elevation-2" alt="User Image">
|
||||
</div>
|
||||
<div class="info">
|
||||
<a href="#" class="d-block"><?= \common\models\User::findIdentity(Yii::$app->user->id)->username ?? null ?></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- SidebarSearch Form -->
|
||||
<!-- href be escaped -->
|
||||
<!-- <div class="form-inline">
|
||||
<div class="input-group" data-widget="sidebar-search">
|
||||
<input class="form-control form-control-sidebar" type="search" placeholder="Search" aria-label="Search">
|
||||
<div class="input-group-append">
|
||||
<button class="btn btn-sidebar">
|
||||
<i class="fas fa-search fa-fw"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div> -->
|
||||
|
||||
<!-- Sidebar Menu -->
|
||||
<nav class="mt-2">
|
||||
<?php
|
||||
echo \hail812\adminlte\widgets\Menu::widget([
|
||||
'items' => [
|
||||
// [
|
||||
// 'label' => 'Starter Pages',
|
||||
// 'icon' => 'tachometer-alt',
|
||||
// 'badge' => '<span class="right badge badge-info">2</span>',
|
||||
// 'items' => [
|
||||
// ['label' => 'Active Page', 'url' => ['site/index'], 'iconStyle' => 'far'],
|
||||
// ['label' => 'Inactive Page', 'iconStyle' => 'far'],
|
||||
// ]
|
||||
// ],
|
||||
// ['label' => 'Simple Link', 'icon' => 'th', 'badge' => '<span class="right badge badge-danger">New</span>'],
|
||||
['label' => 'Чеки', 'icon' => 'th', 'url' => ['/check/check']],
|
||||
['label' => 'Компании', 'icon' => 'th', 'url' => ['/company/company']],
|
||||
['label' => 'Отделения', 'icon' => 'th', 'url' => ['/addresses/addresses']],
|
||||
['label' => 'Товары', 'icon' => 'th', 'url' => ['/product/product']],
|
||||
['label' => 'Категории товаров', 'icon' => 'th', 'url' => ['/product_category/product-category']],
|
||||
// ['label' => 'Yii2 PROVIDED', 'header' => true],
|
||||
// ['label' => 'Login', 'url' => ['site/login'], 'icon' => 'sign-in-alt', 'visible' => Yii::$app->user->isGuest],
|
||||
// ['label' => 'Gii', 'icon' => 'file-code', 'url' => ['/gii'], 'target' => '_blank'],
|
||||
// ['label' => 'Debug', 'icon' => 'bug', 'url' => ['/debug'], 'target' => '_blank'],
|
||||
// ['label' => 'MULTI LEVEL EXAMPLE', 'header' => true],
|
||||
// ['label' => 'Level1'],
|
||||
// [
|
||||
// 'label' => 'Level1',
|
||||
// 'items' => [
|
||||
// ['label' => 'Level2', 'iconStyle' => 'far'],
|
||||
// [
|
||||
// 'label' => 'Level2',
|
||||
// 'iconStyle' => 'far',
|
||||
// 'items' => [
|
||||
// ['label' => 'Level3', 'iconStyle' => 'far', 'icon' => 'dot-circle'],
|
||||
// ['label' => 'Level3', 'iconStyle' => 'far', 'icon' => 'dot-circle'],
|
||||
// ['label' => 'Level3', 'iconStyle' => 'far', 'icon' => 'dot-circle']
|
||||
// ]
|
||||
// ],
|
||||
// ['label' => 'Level2', 'iconStyle' => 'far']
|
||||
// ]
|
||||
// ],
|
||||
// ['label' => 'Level1'],
|
||||
// ['label' => 'LABELS', 'header' => true],
|
||||
// ['label' => 'Important', 'iconStyle' => 'far', 'iconClassAdded' => 'text-danger'],
|
||||
// ['label' => 'Warning', 'iconClass' => 'nav-icon far fa-circle text-warning'],
|
||||
// ['label' => 'Informational', 'iconStyle' => 'far', 'iconClassAdded' => 'text-info'],
|
||||
],
|
||||
]);
|
||||
?>
|
||||
</nav>
|
||||
<!-- /.sidebar-menu -->
|
||||
</div>
|
||||
<!-- /.sidebar -->
|
||||
</aside>
|
16
frontend/views/site/about.php
Normal file
16
frontend/views/site/about.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
/** @var yii\web\View $this */
|
||||
|
||||
use yii\helpers\Html;
|
||||
|
||||
$this->title = 'About';
|
||||
$this->params['breadcrumbs'][] = $this->title;
|
||||
?>
|
||||
<div class="site-about">
|
||||
<h1><?= Html::encode($this->title) ?></h1>
|
||||
|
||||
<p>This is the About page. You may modify the following file to customize its content:</p>
|
||||
|
||||
<code><?= __FILE__ ?></code>
|
||||
</div>
|
45
frontend/views/site/contact.php
Normal file
45
frontend/views/site/contact.php
Normal file
@ -0,0 +1,45 @@
|
||||
<?php
|
||||
|
||||
/** @var yii\web\View $this */
|
||||
/** @var yii\bootstrap5\ActiveForm $form */
|
||||
/** @var \frontend\models\ContactForm $model */
|
||||
|
||||
use yii\bootstrap5\Html;
|
||||
use yii\bootstrap5\ActiveForm;
|
||||
use yii\captcha\Captcha;
|
||||
|
||||
$this->title = 'Contact';
|
||||
$this->params['breadcrumbs'][] = $this->title;
|
||||
?>
|
||||
<div class="site-contact">
|
||||
<h1><?= Html::encode($this->title) ?></h1>
|
||||
|
||||
<p>
|
||||
If you have business inquiries or other questions, please fill out the following form to contact us. Thank you.
|
||||
</p>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-lg-5">
|
||||
<?php $form = ActiveForm::begin(['id' => 'contact-form']); ?>
|
||||
|
||||
<?= $form->field($model, 'name')->textInput(['autofocus' => true]) ?>
|
||||
|
||||
<?= $form->field($model, 'email') ?>
|
||||
|
||||
<?= $form->field($model, 'subject') ?>
|
||||
|
||||
<?= $form->field($model, 'body')->textarea(['rows' => 6]) ?>
|
||||
|
||||
<?= $form->field($model, 'verifyCode')->widget(Captcha::class, [
|
||||
'template' => '<div class="row"><div class="col-lg-3">{image}</div><div class="col-lg-6">{input}</div></div>',
|
||||
]) ?>
|
||||
|
||||
<div class="form-group">
|
||||
<?= Html::submitButton('Submit', ['class' => 'btn btn-primary', 'name' => 'contact-button']) ?>
|
||||
</div>
|
||||
|
||||
<?php ActiveForm::end(); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
40
frontend/views/site/error.php
Normal file
40
frontend/views/site/error.php
Normal file
@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
/* @var $this yii\web\View */
|
||||
/* @var $name string */
|
||||
/* @var $message string */
|
||||
/* @var $exception Exception */
|
||||
|
||||
use yii\helpers\Html;
|
||||
|
||||
$this->title = $name;
|
||||
$this->params['breadcrumbs'] = [['label' => $this->title]];
|
||||
?>
|
||||
<div class="error-page">
|
||||
<div class="error-content" style="margin-left: auto;">
|
||||
<h3><i class="fas fa-exclamation-triangle text-danger"></i> <?= Html::encode($name) ?></h3>
|
||||
|
||||
<p>
|
||||
<?= nl2br(Html::encode($message)) ?>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
The above error occurred while the Web server was processing your request.
|
||||
Please contact us if you think this is a server error. Thank you.
|
||||
Meanwhile, you may <?= Html::a('return to dashboard', Yii::$app->homeUrl); ?>
|
||||
or try using the search form.
|
||||
</p>
|
||||
|
||||
<form class="search-form" style="margin-right: 190px;">
|
||||
<div class="input-group">
|
||||
<input type="text" name="search" class="form-control" placeholder="Search">
|
||||
|
||||
<div class="input-group-append">
|
||||
<button type="submit" name="submit" class="btn btn-danger"><i class="fas fa-search"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
134
frontend/views/site/index.php
Normal file
134
frontend/views/site/index.php
Normal file
@ -0,0 +1,134 @@
|
||||
<?php
|
||||
$this->title = 'Starter Page';
|
||||
$this->params['breadcrumbs'] = [['label' => $this->title]];
|
||||
?>
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-lg-6">
|
||||
<?= \hail812\adminlte\widgets\Alert::widget([
|
||||
'type' => 'success',
|
||||
'body' => '<h3>Congratulations!</h3>',
|
||||
]) ?>
|
||||
<?= \hail812\adminlte\widgets\Callout::widget([
|
||||
'type' => 'danger',
|
||||
'head' => 'I am a danger callout!',
|
||||
'body' => 'There is a problem that we need to fix. A wonderful serenity has taken possession of my entire soul, like these sweet mornings of spring which I enjoy with my whole heart.'
|
||||
]) ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-12 col-sm-6 col-md-3">
|
||||
<?= \hail812\adminlte\widgets\InfoBox::widget([
|
||||
'text' => 'CPU Traffic',
|
||||
'number' => '10 <small>%</small>',
|
||||
'icon' => 'fas fa-cog',
|
||||
]) ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-4 col-sm-6 col-12">
|
||||
<?= \hail812\adminlte\widgets\InfoBox::widget([
|
||||
'text' => 'Messages',
|
||||
'number' => '1,410',
|
||||
'icon' => 'far fa-envelope',
|
||||
]) ?>
|
||||
</div>
|
||||
<div class="col-md-4 col-sm-6 col-12">
|
||||
<?= \hail812\adminlte\widgets\InfoBox::widget([
|
||||
'text' => 'Bookmarks',
|
||||
'number' => '410',
|
||||
'theme' => 'success',
|
||||
'icon' => 'far fa-flag',
|
||||
]) ?>
|
||||
</div>
|
||||
<div class="col-md-4 col-sm-6 col-12">
|
||||
<?= \hail812\adminlte\widgets\InfoBox::widget([
|
||||
'text' => 'Uploads',
|
||||
'number' => '13,648',
|
||||
'theme' => 'gradient-warning',
|
||||
'icon' => 'far fa-copy',
|
||||
]) ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-4 col-sm-6 col-12">
|
||||
<?= \hail812\adminlte\widgets\InfoBox::widget([
|
||||
'text' => 'Bookmarks',
|
||||
'number' => '41,410',
|
||||
'icon' => 'far fa-bookmark',
|
||||
'progress' => [
|
||||
'width' => '70%',
|
||||
'description' => '70% Increase in 30 Days'
|
||||
]
|
||||
]) ?>
|
||||
</div>
|
||||
<div class="col-md-4 col-sm-6 col-12">
|
||||
<?php $infoBox = \hail812\adminlte\widgets\InfoBox::begin([
|
||||
'text' => 'Likes',
|
||||
'number' => '41,410',
|
||||
'theme' => 'success',
|
||||
'icon' => 'far fa-thumbs-up',
|
||||
'progress' => [
|
||||
'width' => '70%',
|
||||
'description' => '70% Increase in 30 Days'
|
||||
]
|
||||
]) ?>
|
||||
<?= \hail812\adminlte\widgets\Ribbon::widget([
|
||||
'id' => $infoBox->id.'-ribbon',
|
||||
'text' => 'Ribbon',
|
||||
]) ?>
|
||||
<?php \hail812\adminlte\widgets\InfoBox::end() ?>
|
||||
</div>
|
||||
<div class="col-md-4 col-sm-6 col-12">
|
||||
<?= \hail812\adminlte\widgets\InfoBox::widget([
|
||||
'text' => 'Events',
|
||||
'number' => '41,410',
|
||||
'theme' => 'gradient-warning',
|
||||
'icon' => 'far fa-calendar-alt',
|
||||
'progress' => [
|
||||
'width' => '70%',
|
||||
'description' => '70% Increase in 30 Days'
|
||||
],
|
||||
'loadingStyle' => true
|
||||
]) ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-lg-4 col-md-6 col-sm-6 col-12">
|
||||
<?= \hail812\adminlte\widgets\SmallBox::widget([
|
||||
'title' => '150',
|
||||
'text' => 'New Orders',
|
||||
'icon' => 'fas fa-shopping-cart',
|
||||
]) ?>
|
||||
</div>
|
||||
<div class="col-lg-4 col-md-6 col-sm-6 col-12">
|
||||
<?php $smallBox = \hail812\adminlte\widgets\SmallBox::begin([
|
||||
'title' => '150',
|
||||
'text' => 'New Orders',
|
||||
'icon' => 'fas fa-shopping-cart',
|
||||
'theme' => 'success'
|
||||
]) ?>
|
||||
<?= \hail812\adminlte\widgets\Ribbon::widget([
|
||||
'id' => $smallBox->id.'-ribbon',
|
||||
'text' => 'Ribbon',
|
||||
'theme' => 'warning',
|
||||
'size' => 'lg',
|
||||
'textSize' => 'lg'
|
||||
]) ?>
|
||||
<?php \hail812\adminlte\widgets\SmallBox::end() ?>
|
||||
</div>
|
||||
<div class="col-lg-4 col-md-6 col-sm-6 col-12">
|
||||
<?= \hail812\adminlte\widgets\SmallBox::widget([
|
||||
'title' => '44',
|
||||
'text' => 'User Registrations',
|
||||
'icon' => 'fas fa-user-plus',
|
||||
'theme' => 'gradient-success',
|
||||
'loadingStyle' => true
|
||||
]) ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
64
frontend/views/site/login.php
Normal file
64
frontend/views/site/login.php
Normal file
@ -0,0 +1,64 @@
|
||||
<?php
|
||||
use yii\helpers\Html;
|
||||
?>
|
||||
<div class="card">
|
||||
<div class="card-body login-card-body">
|
||||
<p class="login-box-msg">Авторизируйтесь для начала работы</p>
|
||||
|
||||
<?php $form = \yii\bootstrap4\ActiveForm::begin(['id' => 'login-form']) ?>
|
||||
|
||||
<?= $form->field($model,'username', [
|
||||
'options' => ['class' => 'form-group has-feedback'],
|
||||
'inputTemplate' => '{input}<div class="input-group-append"><div class="input-group-text"><span class="fas fa-envelope"></span></div></div>',
|
||||
'template' => '{beginWrapper}{input}{error}{endWrapper}',
|
||||
'wrapperOptions' => ['class' => 'input-group mb-3']
|
||||
])
|
||||
->label(false)
|
||||
->textInput(['placeholder' => $model->getAttributeLabel('username')]) ?>
|
||||
|
||||
<?= $form->field($model, 'password', [
|
||||
'options' => ['class' => 'form-group has-feedback'],
|
||||
'inputTemplate' => '{input}<div class="input-group-append"><div class="input-group-text"><span class="fas fa-lock"></span></div></div>',
|
||||
'template' => '{beginWrapper}{input}{error}{endWrapper}',
|
||||
'wrapperOptions' => ['class' => 'input-group mb-3']
|
||||
])
|
||||
->label(false)
|
||||
->passwordInput(['placeholder' => $model->getAttributeLabel('password')]) ?>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-8">
|
||||
<?= $form->field($model, 'rememberMe')->checkbox([
|
||||
'template' => '<div class="icheck-primary">{input}{label}</div>',
|
||||
'labelOptions' => [
|
||||
'class' => ''
|
||||
],
|
||||
'uncheck' => null
|
||||
]) ?>
|
||||
</div>
|
||||
<div class="col-4">
|
||||
<?= Html::submitButton('Вход', ['class' => 'btn btn-primary btn-block']) ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php \yii\bootstrap4\ActiveForm::end(); ?>
|
||||
|
||||
<!-- <div class="social-auth-links text-center mb-3">-->
|
||||
<!-- <p>- OR -</p>-->
|
||||
<!-- <a href="#" class="btn btn-block btn-primary">-->
|
||||
<!-- <i class="fab fa-facebook mr-2"></i> Sign in using Facebook-->
|
||||
<!-- </a>-->
|
||||
<!-- <a href="#" class="btn btn-block btn-danger">-->
|
||||
<!-- <i class="fab fa-google-plus mr-2"></i> Sign in using Google+-->
|
||||
<!-- </a>-->
|
||||
<!-- </div>-->
|
||||
<!-- /.social-auth-links -->
|
||||
|
||||
<p class="mb-1">
|
||||
<a href="forgot-password.html">Забыл пароль</a>
|
||||
</p>
|
||||
<p class="mb-0">
|
||||
<?= Html::a("Регистрация", \yii\helpers\Url::to(['site/signup']), ['class' => 'text-center']) ?>
|
||||
</p>
|
||||
</div>
|
||||
<!-- /.login-card-body -->
|
||||
</div>
|
31
frontend/views/site/requestPasswordResetToken.php
Normal file
31
frontend/views/site/requestPasswordResetToken.php
Normal file
@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
/** @var yii\web\View $this */
|
||||
/** @var yii\bootstrap5\ActiveForm $form */
|
||||
/** @var \frontend\models\PasswordResetRequestForm $model */
|
||||
|
||||
use yii\bootstrap5\Html;
|
||||
use yii\bootstrap5\ActiveForm;
|
||||
|
||||
$this->title = 'Request password reset';
|
||||
$this->params['breadcrumbs'][] = $this->title;
|
||||
?>
|
||||
<div class="site-request-password-reset">
|
||||
<h1><?= Html::encode($this->title) ?></h1>
|
||||
|
||||
<p>Please fill out your email. A link to reset password will be sent there.</p>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-lg-5">
|
||||
<?php $form = ActiveForm::begin(['id' => 'request-password-reset-form']); ?>
|
||||
|
||||
<?= $form->field($model, 'email')->textInput(['autofocus' => true]) ?>
|
||||
|
||||
<div class="form-group">
|
||||
<?= Html::submitButton('Send', ['class' => 'btn btn-primary']) ?>
|
||||
</div>
|
||||
|
||||
<?php ActiveForm::end(); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
31
frontend/views/site/resendVerificationEmail.php
Normal file
31
frontend/views/site/resendVerificationEmail.php
Normal file
@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
/** @var yii\web\View$this */
|
||||
/** @var yii\bootstrap5\ActiveForm $form */
|
||||
/** @var \frontend\models\ResetPasswordForm $model */
|
||||
|
||||
use yii\bootstrap5\Html;
|
||||
use yii\bootstrap5\ActiveForm;
|
||||
|
||||
$this->title = 'Resend verification email';
|
||||
$this->params['breadcrumbs'][] = $this->title;
|
||||
?>
|
||||
<div class="site-resend-verification-email">
|
||||
<h1><?= Html::encode($this->title) ?></h1>
|
||||
|
||||
<p>Please fill out your email. A verification email will be sent there.</p>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-lg-5">
|
||||
<?php $form = ActiveForm::begin(['id' => 'resend-verification-email-form']); ?>
|
||||
|
||||
<?= $form->field($model, 'email')->textInput(['autofocus' => true]) ?>
|
||||
|
||||
<div class="form-group">
|
||||
<?= Html::submitButton('Send', ['class' => 'btn btn-primary']) ?>
|
||||
</div>
|
||||
|
||||
<?php ActiveForm::end(); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
31
frontend/views/site/resetPassword.php
Normal file
31
frontend/views/site/resetPassword.php
Normal file
@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
/** @var yii\web\View $this */
|
||||
/** @var yii\bootstrap5\ActiveForm $form */
|
||||
/** @var \frontend\models\ResetPasswordForm $model */
|
||||
|
||||
use yii\bootstrap5\Html;
|
||||
use yii\bootstrap5\ActiveForm;
|
||||
|
||||
$this->title = 'Reset password';
|
||||
$this->params['breadcrumbs'][] = $this->title;
|
||||
?>
|
||||
<div class="site-reset-password">
|
||||
<h1><?= Html::encode($this->title) ?></h1>
|
||||
|
||||
<p>Please choose your new password:</p>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-lg-5">
|
||||
<?php $form = ActiveForm::begin(['id' => 'reset-password-form']); ?>
|
||||
|
||||
<?= $form->field($model, 'password')->passwordInput(['autofocus' => true]) ?>
|
||||
|
||||
<div class="form-group">
|
||||
<?= Html::submitButton('Save', ['class' => 'btn btn-primary']) ?>
|
||||
</div>
|
||||
|
||||
<?php ActiveForm::end(); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
68
frontend/views/site/signup.php
Normal file
68
frontend/views/site/signup.php
Normal file
@ -0,0 +1,68 @@
|
||||
<?php
|
||||
|
||||
/** @var yii\web\View $this */
|
||||
/** @var yii\bootstrap5\ActiveForm $form */
|
||||
/** @var \frontend\models\SignupForm $model */
|
||||
|
||||
use yii\bootstrap5\Html;
|
||||
use yii\bootstrap5\ActiveForm;
|
||||
|
||||
$this->title = 'Регистрация';
|
||||
$this->params['breadcrumbs'][] = $this->title;
|
||||
?>
|
||||
|
||||
<div class="card">
|
||||
<div class="card-body login-card-body">
|
||||
<p class="login-box-msg">Регистрация</p>
|
||||
|
||||
<?php $form = \yii\bootstrap4\ActiveForm::begin(['id' => 'form-signup']) ?>
|
||||
|
||||
<?= $form->field($model,'username', [
|
||||
'options' => ['class' => 'form-group has-feedback'],
|
||||
'inputTemplate' => '{input}<div class="input-group-append"><div class="input-group-text"><span class="fas fa-envelope"></span></div></div>',
|
||||
'template' => '{beginWrapper}{input}{error}{endWrapper}',
|
||||
'wrapperOptions' => ['class' => 'input-group mb-3']
|
||||
])
|
||||
->label(false)
|
||||
->textInput(['placeholder' => $model->getAttributeLabel('username')]) ?>
|
||||
|
||||
<?= $form->field($model,'email', [
|
||||
'options' => ['class' => 'form-group has-feedback'],
|
||||
'inputTemplate' => '{input}<div class="input-group-append"><div class="input-group-text"><span class="fas fa-envelope"></span></div></div>',
|
||||
'template' => '{beginWrapper}{input}{error}{endWrapper}',
|
||||
'wrapperOptions' => ['class' => 'input-group mb-3']
|
||||
])
|
||||
->label(false)
|
||||
->textInput(['placeholder' => $model->getAttributeLabel('email')]) ?>
|
||||
|
||||
<?= $form->field($model, 'password', [
|
||||
'options' => ['class' => 'form-group has-feedback'],
|
||||
'inputTemplate' => '{input}<div class="input-group-append"><div class="input-group-text"><span class="fas fa-lock"></span></div></div>',
|
||||
'template' => '{beginWrapper}{input}{error}{endWrapper}',
|
||||
'wrapperOptions' => ['class' => 'input-group mb-3']
|
||||
])
|
||||
->label(false)
|
||||
->passwordInput(['placeholder' => $model->getAttributeLabel('password')]) ?>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
<?= Html::submitButton('Регистрация', ['class' => 'btn btn-primary btn-block']) ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php \yii\bootstrap4\ActiveForm::end(); ?>
|
||||
|
||||
<!-- <div class="social-auth-links text-center mb-3">-->
|
||||
<!-- <p>- OR -</p>-->
|
||||
<!-- <a href="#" class="btn btn-block btn-primary">-->
|
||||
<!-- <i class="fab fa-facebook mr-2"></i> Sign in using Facebook-->
|
||||
<!-- </a>-->
|
||||
<!-- <a href="#" class="btn btn-block btn-danger">-->
|
||||
<!-- <i class="fab fa-google-plus mr-2"></i> Sign in using Google+-->
|
||||
<!-- </a>-->
|
||||
<!-- </div>-->
|
||||
<!-- /.social-auth-links -->
|
||||
|
||||
</div>
|
||||
<!-- /.login-card-body -->
|
||||
</div>
|
Reference in New Issue
Block a user