create project
This commit is contained in:
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