init
This commit is contained in:
41
vendor/dmstr/yii2-adminlte-asset/example-views/testing/app/default/_controllers.php
vendored
Normal file
41
vendor/dmstr/yii2-adminlte-asset/example-views/testing/app/default/_controllers.php
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
use yii\helpers\Inflector;
|
||||
|
||||
$favourites = ($favourites) ?: [];
|
||||
|
||||
// Note: requires `$controllers` variable during rendering...
|
||||
|
||||
?>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-body">
|
||||
<ul class="list-group">
|
||||
<?php
|
||||
$dataProvider = new \yii\data\ArrayDataProvider(
|
||||
[
|
||||
'allModels' => $controllers,
|
||||
'pagination' => [
|
||||
'pageSize' => 100
|
||||
]
|
||||
]
|
||||
);
|
||||
echo \yii\widgets\ListView::widget(
|
||||
[
|
||||
'dataProvider' => $dataProvider,
|
||||
'itemView' => function ($data) {
|
||||
return '<li class="list-group-item">' . \yii\helpers\Html::a(
|
||||
$data['label'],
|
||||
$data['route']
|
||||
) . '</li>';
|
||||
},
|
||||
]
|
||||
);
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
79
vendor/dmstr/yii2-adminlte-asset/example-views/testing/app/default/_expand-collapse.php
vendored
Normal file
79
vendor/dmstr/yii2-adminlte-asset/example-views/testing/app/default/_expand-collapse.php
vendored
Normal file
@@ -0,0 +1,79 @@
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<div class="box box-default collapsed-box">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">Expandable</h3>
|
||||
|
||||
<div class="box-tools pull-right">
|
||||
<button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-plus"></i>
|
||||
</button>
|
||||
</div>
|
||||
<!-- /.box-tools -->
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body" style="display: none;">
|
||||
The body of the box
|
||||
</div>
|
||||
<!-- /.box-body -->
|
||||
</div>
|
||||
<!-- /.box -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
<div class="col-md-3">
|
||||
<div class="box box-success">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">Removable</h3>
|
||||
|
||||
<div class="box-tools pull-right">
|
||||
<button type="button" class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
|
||||
</div>
|
||||
<!-- /.box-tools -->
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
The body of the box
|
||||
</div>
|
||||
<!-- /.box-body -->
|
||||
</div>
|
||||
<!-- /.box -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
<div class="col-md-3">
|
||||
<div class="box box-warning">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">Collapsable</h3>
|
||||
|
||||
<div class="box-tools pull-right">
|
||||
<button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i>
|
||||
</button>
|
||||
</div>
|
||||
<!-- /.box-tools -->
|
||||
</div>
|
||||
<!-- /.box-header -->
|
||||
<div class="box-body">
|
||||
The body of the box
|
||||
</div>
|
||||
<!-- /.box-body -->
|
||||
</div>
|
||||
<!-- /.box -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
<div class="col-md-3">
|
||||
<div class="box box-danger">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title">Loading state</h3>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
The body of the box
|
||||
</div>
|
||||
<!-- /.box-body -->
|
||||
<!-- Loading (remove the following to stop the loading)-->
|
||||
<div class="overlay">
|
||||
<i class="fa fa-refresh fa-spin"></i>
|
||||
</div>
|
||||
<!-- end loading -->
|
||||
</div>
|
||||
<!-- /.box -->
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
169
vendor/dmstr/yii2-adminlte-asset/example-views/testing/app/default/index.php
vendored
Normal file
169
vendor/dmstr/yii2-adminlte-asset/example-views/testing/app/default/index.php
vendored
Normal file
@@ -0,0 +1,169 @@
|
||||
<div class="row">
|
||||
<div class="col-md-3 col-xs-6">
|
||||
<!-- small box -->
|
||||
<div class="small-box bg-blue">
|
||||
<div class="inner">
|
||||
<h3>
|
||||
<?= YII_ENV ?>
|
||||
</h3>
|
||||
|
||||
<p>
|
||||
Go to Frontend
|
||||
</p>
|
||||
</div>
|
||||
<div class="icon">
|
||||
<i class="ion ion-home"></i>
|
||||
</div>
|
||||
<a href="<?= \yii\helpers\Url::to('site/index') ?>" class="small-box-footer">
|
||||
Homepage <i class="fa fa-arrow-circle-right"></i>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<!-- ./col -->
|
||||
|
||||
|
||||
<div class="col-md-3 col-xs-6">
|
||||
<!-- small box -->
|
||||
<div class="small-box bg-aqua">
|
||||
<div class="inner">
|
||||
<h3>
|
||||
n/a
|
||||
</h3>
|
||||
|
||||
<p>
|
||||
Users
|
||||
</p>
|
||||
</div>
|
||||
<div class="icon">
|
||||
<i class="ion ion-person"></i>
|
||||
</div>
|
||||
<a href="<?= \yii\helpers\Url::to(['/user/admin']) ?>" class="small-box-footer">
|
||||
Manage <i class="fa fa-arrow-circle-right"></i>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<!-- ./col -->
|
||||
|
||||
<div class="col-md-3 col-xs-6">
|
||||
<!-- small box -->
|
||||
<div class="small-box bg-orange">
|
||||
<div class="inner">
|
||||
<h3>
|
||||
<?= count(\Yii::$app->getModules()) ?>
|
||||
</h3>
|
||||
|
||||
<p>
|
||||
Modules
|
||||
</p>
|
||||
</div>
|
||||
<div class="icon">
|
||||
<i class="ion ion-stats-bars"></i>
|
||||
</div>
|
||||
<a href="<?= \yii\helpers\Url::to(['/debug']) ?>" class="small-box-footer">
|
||||
Debug <i class="fa fa-arrow-circle-right"></i>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- ./col -->
|
||||
|
||||
<div class="col-md-3 col-xs-6">
|
||||
<!-- small box -->
|
||||
<div class="small-box bg-red">
|
||||
<div class="inner">
|
||||
<h3>
|
||||
<?= getenv('APP_VERSION') ?>
|
||||
</h3>
|
||||
|
||||
<p>
|
||||
Version
|
||||
</p>
|
||||
</div>
|
||||
<div class="icon">
|
||||
<i class="ion ion-grid"></i>
|
||||
</div>
|
||||
<a href="<?= \yii\helpers\Url::to('http://phundament.com') ?>" target="_blank" class="small-box-footer">
|
||||
Phundament Online <i class="fa fa-arrow-circle-right"></i>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<!-- ./col -->
|
||||
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<!-- Default box -->
|
||||
<div class="box">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title">Languages</h3>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
Test
|
||||
</div>
|
||||
<!-- /.box-body -->
|
||||
<div class="box-footer">
|
||||
<small>Registered in <code>urlManager</code> application component.</small>
|
||||
</div>
|
||||
<!-- /.box-footer-->
|
||||
</div>
|
||||
<!-- /.box -->
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<!-- Default box -->
|
||||
<div class="box">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title">Modules</h3>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<?php
|
||||
foreach (\Yii::$app->getModules() AS $name => $m) {
|
||||
$module = \Yii::$app->getModule($name);
|
||||
echo yii\helpers\Html::a(
|
||||
$module->id,
|
||||
['/'.$module->id],
|
||||
['class' => 'btn btn-default btn-flat']
|
||||
);
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<!-- /.box-body -->
|
||||
<div class="box-footer">
|
||||
<small>Registered in application from configuration or bootstrapping.</small>
|
||||
</div>
|
||||
<!-- /.box-footer-->
|
||||
</div>
|
||||
<!-- /.box -->
|
||||
</div>
|
||||
|
||||
<div class="col-sm-6">
|
||||
<!-- Default box -->
|
||||
<div class="box">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title">Documentation</h3>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<div class="alert alert-info">
|
||||
<i class="fa fa-warning"></i>
|
||||
<b>Notice!</b> Use the <i>yii2-apidoc</i> extension to
|
||||
create the HTML documentation for this application.
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.box-body -->
|
||||
<div class="box-footer">
|
||||
|
||||
</div>
|
||||
<!-- /.box-footer-->
|
||||
</div>
|
||||
<!-- /.box -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?= $this->render('_expand-collapse') ?>
|
||||
|
||||
|
||||
114
vendor/dmstr/yii2-adminlte-asset/example-views/testing/app/layouts/_sidebar.php
vendored
Normal file
114
vendor/dmstr/yii2-adminlte-asset/example-views/testing/app/layouts/_sidebar.php
vendored
Normal file
@@ -0,0 +1,114 @@
|
||||
<?php
|
||||
|
||||
?>
|
||||
|
||||
<!-- Sidebar user panel -->
|
||||
<div class="user-panel">
|
||||
<div class="pull-left image">
|
||||
<?php echo \cebe\gravatar\Gravatar::widget(
|
||||
[
|
||||
'email' => 'username@example.com',
|
||||
'options' => [
|
||||
'alt' => 'username',
|
||||
],
|
||||
'size' => 64,
|
||||
]
|
||||
); ?>
|
||||
</div>
|
||||
<div class="pull-left info">
|
||||
<p>username</p>
|
||||
|
||||
<a href="#"><i class="fa fa-circle text-success"></i> Online</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- search form -->
|
||||
<form action="#" method="get" class="sidebar-form">
|
||||
<div class="input-group">
|
||||
<input type="text" name="q" class="form-control" placeholder="Search..."/>
|
||||
<span class="input-group-btn">
|
||||
<button type='submit' name='seach' id='search-btn' class="btn btn-flat"><i
|
||||
class="fa fa-search"></i></button>
|
||||
</span>
|
||||
</div>
|
||||
</form>
|
||||
<!-- /.search form -->
|
||||
|
||||
|
||||
<?php
|
||||
|
||||
// prepare menu items, get all modules
|
||||
$menuItems = [];
|
||||
|
||||
$favouriteMenuItems[] = ['label' => 'MAIN NAVIGATION', 'options' => ['class' => 'header']];
|
||||
|
||||
|
||||
$developerMenuItems = [];
|
||||
$developerMenuItems[] = [
|
||||
'url' => ['/sub/action/one'],
|
||||
'icon' => 'cog',
|
||||
'label' => 'Sub 1',
|
||||
];
|
||||
$developerMenuItems[] = [
|
||||
'icon' => 'cog',
|
||||
'label' => 'No Link',
|
||||
];
|
||||
$developerMenuItems[] = [
|
||||
'icon' => 'cog',
|
||||
'label' => 'Not visible',
|
||||
'visible' => false,
|
||||
];
|
||||
$developerMenuItems[] = [
|
||||
'icon' => 'cog',
|
||||
'label' => 'Folder',
|
||||
'items' => [
|
||||
[
|
||||
'url' => ['/sub/action/two'],
|
||||
'icon' => 'cog',
|
||||
'label' => 'SubSub 2',
|
||||
],
|
||||
],
|
||||
];
|
||||
$developerMenuItems[] = [
|
||||
'url' => ['/sub/action/three'],
|
||||
'icon' => 'cog',
|
||||
'label' => 'Sub 3',
|
||||
];
|
||||
$developerMenuItems[] = [
|
||||
'url' => ['/sub/action/param', 'id' => 'a'],
|
||||
'icon' => 'cog',
|
||||
'label' => 'Param A',
|
||||
];
|
||||
$developerMenuItems[] = [
|
||||
'url' => ['/sub/action/param', 'id' => 'b'],
|
||||
'icon' => 'cog',
|
||||
'label' => 'Param B',
|
||||
];
|
||||
|
||||
|
||||
$menuItems[] = [
|
||||
'url' => ['/test'],
|
||||
'icon' => 'cog',
|
||||
'label' => 'Test',
|
||||
];
|
||||
|
||||
$menuItems[] = [
|
||||
#'url' => '#',
|
||||
'icon' => 'cog',
|
||||
'label' => 'Test with items',
|
||||
'items' => $developerMenuItems,
|
||||
];
|
||||
|
||||
for ($i = 0; $i < 25; $i++) {
|
||||
$menuItems[] = [
|
||||
'url' => ['/test/auto', 'id' => $i],
|
||||
'icon' => 'cog',
|
||||
'label' => 'Auto '.$i,
|
||||
];
|
||||
}
|
||||
|
||||
echo dmstr\widgets\Menu::widget([
|
||||
'items' => \yii\helpers\ArrayHelper::merge($favouriteMenuItems, $menuItems),
|
||||
]);
|
||||
?>
|
||||
164
vendor/dmstr/yii2-adminlte-asset/example-views/testing/app/layouts/main.php
vendored
Normal file
164
vendor/dmstr/yii2-adminlte-asset/example-views/testing/app/layouts/main.php
vendored
Normal file
@@ -0,0 +1,164 @@
|
||||
<?php
|
||||
use dmstr\widgets\Alert;
|
||||
use yii\helpers\Html;
|
||||
|
||||
/* @var $this \yii\web\View */
|
||||
/* @var $content string */
|
||||
$this->title = $this->title . ' [Backend]';
|
||||
dmstr\web\AdminLteAsset::register($this);
|
||||
?>
|
||||
|
||||
<?php $this->beginPage() ?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<?= Html::csrfMetaTags() ?>
|
||||
<title><?= Html::encode($this->title) ?></title>
|
||||
<meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
|
||||
<!-- Ionicons -->
|
||||
<link href="//code.ionicframework.com/ionicons/1.5.2/css/ionicons.min.css" rel="stylesheet" type="text/css"/>
|
||||
<!-- Theme style -->
|
||||
<?php $this->head() ?>
|
||||
|
||||
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
|
||||
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
</head>
|
||||
|
||||
<body class="hold-transition skin-black sidebar-mini">
|
||||
<?php $this->beginBody() ?>
|
||||
|
||||
<div class="wrapper">
|
||||
|
||||
<header class="main-header">
|
||||
<!-- Logo -->
|
||||
<a href="<?= \Yii::$app->homeUrl ?>" class="logo"><?= getenv('APP_TITLE') ?></a>
|
||||
<!-- Header Navbar: style can be found in header.less -->
|
||||
<nav class="navbar navbar-static-top" role="navigation">
|
||||
<!-- Sidebar toggle button-->
|
||||
<a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
</a>
|
||||
|
||||
<div class="navbar-custom-menu">
|
||||
<ul class="nav navbar-nav">
|
||||
<!-- Messages: style can be found in dropdown.less-->
|
||||
<li class="dropdown messages-menu">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
||||
<i class="fa fa-envelope-o"></i>
|
||||
<span class="label label-success">1</span>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li class="header">You have 1 notification(s)</li>
|
||||
<li>
|
||||
<!-- inner menu: contains the actual data -->
|
||||
<ul class="menu">
|
||||
<li>
|
||||
<a href="#">
|
||||
<i class="ion ion-ios7-people info"></i> Welcome to Phundament 4!
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="dropdown tasks-menu">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
||||
<i class="fa fa-flag"></i>
|
||||
<span class="label label-default">n/a</span>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li class="header">Languages</li>
|
||||
<li>
|
||||
<!-- inner menu: contains the actual data -->
|
||||
<ul class="menu">
|
||||
languages
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<!-- User Account: style can be found in dropdown.less -->
|
||||
<li class="dropdown user user-menu">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
||||
<i class="glyphicon glyphicon-user"></i>
|
||||
<span>Username <i class="caret"></i></span>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<!-- User image -->
|
||||
<li class="user-header bg-light-blue">
|
||||
<?php echo \cebe\gravatar\Gravatar::widget(
|
||||
[
|
||||
'email' => 'username@example.com',
|
||||
'options' => [
|
||||
'alt' => 'username'
|
||||
],
|
||||
'size' => 128
|
||||
]
|
||||
); ?>
|
||||
<p>
|
||||
username
|
||||
<small>username@example.com</small>
|
||||
</p>
|
||||
</li>
|
||||
<!-- Menu Footer-->
|
||||
<li class="user-footer">
|
||||
<div class="pull-left">
|
||||
<a href="<?= \yii\helpers\Url::to(['/user/settings/profile']) ?>"
|
||||
class="btn btn-default btn-flat">Profile</a>
|
||||
</div>
|
||||
<div class="pull-right">
|
||||
<a href="<?= \yii\helpers\Url::to(['/user/security/logout']) ?>"
|
||||
class="btn btn-default btn-flat" data-method="post">Sign out</a>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
||||
<!-- Left side column. contains the logo and sidebar -->
|
||||
<aside class="main-sidebar">
|
||||
<!-- sidebar: style can be found in sidebar.less -->
|
||||
<section class="sidebar">
|
||||
<?= $this->render('_sidebar') ?>
|
||||
</section>
|
||||
<!-- /.sidebar -->
|
||||
</aside>
|
||||
|
||||
<!-- Right side column. Contains the navbar and content of the page -->
|
||||
<div class="content-wrapper">
|
||||
<!-- Content Header (Page header) -->
|
||||
<section class="content-header">
|
||||
<h1>
|
||||
<small><?= $this->title ?></small>
|
||||
</h1>
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
|
||||
<li class="active">Dashboard</li>
|
||||
</ol>
|
||||
</section>
|
||||
|
||||
<!-- Main content -->
|
||||
|
||||
<section class="content">
|
||||
<?= Alert::widget() ?>
|
||||
<?= $content ?>
|
||||
</section>
|
||||
<!-- /.content -->
|
||||
</div>
|
||||
<!-- /.content-wrapper -->
|
||||
<footer class="main-footer">
|
||||
Powered by <strong><a href="http://phundament.com">Phundament 4</a></strong>
|
||||
</footer>
|
||||
</div>
|
||||
<!-- ./wrapper -->
|
||||
|
||||
<?php $this->endBody() ?>
|
||||
</body>
|
||||
</html>
|
||||
<?php $this->endPage() ?>
|
||||
58
vendor/dmstr/yii2-adminlte-asset/example-views/testing/app/security/login.php
vendored
Normal file
58
vendor/dmstr/yii2-adminlte-asset/example-views/testing/app/security/login.php
vendored
Normal file
@@ -0,0 +1,58 @@
|
||||
<!DOCTYPE html>
|
||||
<html class="bg-black">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>AdminLTE | Log in</title>
|
||||
<meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
|
||||
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
|
||||
<link href="//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
|
||||
<!-- Theme style -->
|
||||
<link href="../../css/AdminLTE.css" rel="stylesheet" type="text/css" />
|
||||
|
||||
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
|
||||
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
</head>
|
||||
<body class="bg-black">
|
||||
|
||||
<div class="form-box" id="login-box">
|
||||
<div class="header">Sign In</div>
|
||||
<form action="../../index.html" method="post">
|
||||
<div class="body bg-gray">
|
||||
<div class="form-group">
|
||||
<input type="text" name="userid" class="form-control" placeholder="User ID"/>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="password" name="password" class="form-control" placeholder="Password"/>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="checkbox" name="remember_me"/> Remember me
|
||||
</div>
|
||||
</div>
|
||||
<div class="footer">
|
||||
<button type="submit" class="btn bg-olive btn-block">Sign me in</button>
|
||||
|
||||
<p><a href="#">I forgot my password</a></p>
|
||||
|
||||
<a href="register.html" class="text-center">Register a new membership</a>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div class="margin text-center">
|
||||
<span>Sign in using social networks</span>
|
||||
<br/>
|
||||
<button class="btn bg-light-blue btn-circle"><i class="fa fa-facebook"></i></button>
|
||||
<button class="btn bg-aqua btn-circle"><i class="fa fa-twitter"></i></button>
|
||||
<button class="btn bg-red btn-circle"><i class="fa fa-google-plus"></i></button>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
|
||||
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js" type="text/javascript"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
221
vendor/dmstr/yii2-adminlte-asset/example-views/yiisoft/yii2-app/layouts/content.php
vendored
Normal file
221
vendor/dmstr/yii2-adminlte-asset/example-views/yiisoft/yii2-app/layouts/content.php
vendored
Normal file
@@ -0,0 +1,221 @@
|
||||
<?php
|
||||
use yii\widgets\Breadcrumbs;
|
||||
use dmstr\widgets\Alert;
|
||||
|
||||
?>
|
||||
<div class="content-wrapper">
|
||||
<section class="content-header">
|
||||
|
||||
|
||||
<?=
|
||||
Breadcrumbs::widget(
|
||||
[
|
||||
'links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : [],
|
||||
]
|
||||
) ?>
|
||||
</section>
|
||||
|
||||
<section class="content">
|
||||
<input type="hidden" value="<?php echo Yii::$app->user->id; ?>" name="current_user_id">
|
||||
<?= Alert::widget() ?>
|
||||
<?= $content ?>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<footer class="main-footer">
|
||||
<div class="pull-right hidden-xs">
|
||||
<b>Version</b> 2.0
|
||||
</div>
|
||||
<strong>Copyright © 2019 <a href="#">BEET INNOVATORS</a>.</strong> All rights reserved.
|
||||
</footer>
|
||||
|
||||
<!-- Control Sidebar -->
|
||||
<aside class="control-sidebar control-sidebar-dark">
|
||||
<!-- Create the tabs -->
|
||||
<ul class="nav nav-tabs nav-justified control-sidebar-tabs">
|
||||
<li><a href="#control-sidebar-home-tab" data-toggle="tab"><i class="fa fa-home"></i></a></li>
|
||||
<li><a href="#control-sidebar-settings-tab" data-toggle="tab"><i class="fa fa-gears"></i></a></li>
|
||||
</ul>
|
||||
<!-- Tab panes -->
|
||||
<div class="tab-content">
|
||||
<!-- Home tab content -->
|
||||
<div class="tab-pane" id="control-sidebar-home-tab">
|
||||
<h3 class="control-sidebar-heading">Recent Activity</h3>
|
||||
<ul class='control-sidebar-menu'>
|
||||
<li>
|
||||
<a href='javascript::;'>
|
||||
<i class="menu-icon fa fa-birthday-cake bg-red"></i>
|
||||
|
||||
<div class="menu-info">
|
||||
<h4 class="control-sidebar-subheading">Langdon's Birthday</h4>
|
||||
|
||||
<p>Will be 23 on April 24th</p>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href='javascript::;'>
|
||||
<i class="menu-icon fa fa-user bg-yellow"></i>
|
||||
|
||||
<div class="menu-info">
|
||||
<h4 class="control-sidebar-subheading">Frodo Updated His Profile</h4>
|
||||
|
||||
<p>New phone +1(800)555-1234</p>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href='javascript::;'>
|
||||
<i class="menu-icon fa fa-envelope-o bg-light-blue"></i>
|
||||
|
||||
<div class="menu-info">
|
||||
<h4 class="control-sidebar-subheading">Nora Joined Mailing List</h4>
|
||||
|
||||
<p>nora@example.com</p>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href='javascript::;'>
|
||||
<i class="menu-icon fa fa-file-code-o bg-green"></i>
|
||||
|
||||
<div class="menu-info">
|
||||
<h4 class="control-sidebar-subheading">Cron Job 254 Executed</h4>
|
||||
|
||||
<p>Execution time 5 seconds</p>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- /.control-sidebar-menu -->
|
||||
|
||||
<h3 class="control-sidebar-heading">Tasks Progress</h3>
|
||||
<ul class='control-sidebar-menu'>
|
||||
<li>
|
||||
<a href='javascript::;'>
|
||||
<h4 class="control-sidebar-subheading">
|
||||
Custom Template Design
|
||||
<span class="label label-danger pull-right">70%</span>
|
||||
</h4>
|
||||
|
||||
<div class="progress progress-xxs">
|
||||
<div class="progress-bar progress-bar-danger" style="width: 70%"></div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href='javascript::;'>
|
||||
<h4 class="control-sidebar-subheading">
|
||||
Update Resume
|
||||
<span class="label label-success pull-right">95%</span>
|
||||
</h4>
|
||||
|
||||
<div class="progress progress-xxs">
|
||||
<div class="progress-bar progress-bar-success" style="width: 95%"></div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href='javascript::;'>
|
||||
<h4 class="control-sidebar-subheading">
|
||||
Laravel Integration
|
||||
<span class="label label-waring pull-right">50%</span>
|
||||
</h4>
|
||||
|
||||
<div class="progress progress-xxs">
|
||||
<div class="progress-bar progress-bar-warning" style="width: 50%"></div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href='javascript::;'>
|
||||
<h4 class="control-sidebar-subheading">
|
||||
Back End Framework
|
||||
<span class="label label-primary pull-right">68%</span>
|
||||
</h4>
|
||||
|
||||
<div class="progress progress-xxs">
|
||||
<div class="progress-bar progress-bar-primary" style="width: 68%"></div>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- /.control-sidebar-menu -->
|
||||
|
||||
</div>
|
||||
<!-- /.tab-pane -->
|
||||
|
||||
<!-- Settings tab content -->
|
||||
<div class="tab-pane" id="control-sidebar-settings-tab">
|
||||
<form method="post">
|
||||
<h3 class="control-sidebar-heading">General Settings</h3>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-sidebar-subheading">
|
||||
Report panel usage
|
||||
<input type="checkbox" class="pull-right" checked/>
|
||||
</label>
|
||||
|
||||
<p>
|
||||
Some information about this general settings option
|
||||
</p>
|
||||
</div>
|
||||
<!-- /.form-group -->
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-sidebar-subheading">
|
||||
Allow mail redirect
|
||||
<input type="checkbox" class="pull-right" checked/>
|
||||
</label>
|
||||
|
||||
<p>
|
||||
Other sets of options are available
|
||||
</p>
|
||||
</div>
|
||||
<!-- /.form-group -->
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-sidebar-subheading">
|
||||
Expose author name in posts
|
||||
<input type="checkbox" class="pull-right" checked/>
|
||||
</label>
|
||||
|
||||
<p>
|
||||
Allow the user to show his name in blog posts
|
||||
</p>
|
||||
</div>
|
||||
<!-- /.form-group -->
|
||||
|
||||
<h3 class="control-sidebar-heading">Chat Settings</h3>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-sidebar-subheading">
|
||||
Show me as online
|
||||
<input type="checkbox" class="pull-right" checked/>
|
||||
</label>
|
||||
</div>
|
||||
<!-- /.form-group -->
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-sidebar-subheading">
|
||||
Turn off notifications
|
||||
<input type="checkbox" class="pull-right"/>
|
||||
</label>
|
||||
</div>
|
||||
<!-- /.form-group -->
|
||||
|
||||
<div class="form-group">
|
||||
<label class="control-sidebar-subheading">
|
||||
Delete chat history
|
||||
<a href="javascript::;" class="text-red pull-right"><i class="fa fa-trash-o"></i></a>
|
||||
</label>
|
||||
</div>
|
||||
<!-- /.form-group -->
|
||||
</form>
|
||||
</div>
|
||||
<!-- /.tab-pane -->
|
||||
</div>
|
||||
</aside><!-- /.control-sidebar -->
|
||||
<!-- Add the sidebar's background. This div must be placed
|
||||
immediately after the control sidebar -->
|
||||
<div class='control-sidebar-bg'></div>
|
||||
106
vendor/dmstr/yii2-adminlte-asset/example-views/yiisoft/yii2-app/layouts/header.php
vendored
Normal file
106
vendor/dmstr/yii2-adminlte-asset/example-views/yiisoft/yii2-app/layouts/header.php
vendored
Normal file
@@ -0,0 +1,106 @@
|
||||
<?php
|
||||
|
||||
use yii\helpers\Html;
|
||||
use yii\widgets\ActiveForm;
|
||||
|
||||
/* @var $this \yii\web\View */
|
||||
/* @var $content string */
|
||||
?>
|
||||
|
||||
<header class="main-header">
|
||||
|
||||
<?= Html::a('<span class="logo-mini">BI</span><span class="logo-lg"><img src="images/logo.png" width="75%"></span>', Yii::$app->homeUrl, ['class' => 'logo']) ?>
|
||||
|
||||
<nav class="navbar navbar-static-top" role="navigation">
|
||||
|
||||
<a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
</a>
|
||||
|
||||
<div class="navbar-custom-menu">
|
||||
|
||||
<ul class="nav navbar-nav">
|
||||
|
||||
<li class="dropdown notifications-menu">
|
||||
</li>
|
||||
<li class="dropdown user user-menu">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
||||
<img src="<?php
|
||||
if (Yii::$app->user->isGuest) {
|
||||
echo $directoryAsset . "/img/user2-160x160.jpg";
|
||||
} else {
|
||||
echo Yii::$app->user->identity->user_image == null ? $directoryAsset . "/img/user2-160x160.jpg" : Yii::getAlias("@images_folder") . Yii::$app->user->identity->user_image;
|
||||
}
|
||||
?>" class="user-image" alt="User Image"/>
|
||||
<span class="hidden-xs">
|
||||
<?php
|
||||
if (Yii::$app->user->isGuest) {
|
||||
echo "";
|
||||
} else {
|
||||
echo Yii::$app->user->identity->first_name . " " . Yii::$app->user->identity->last_name;
|
||||
}
|
||||
?>
|
||||
</span>
|
||||
</a>
|
||||
<ul class="dropdown-menu" style="width:250px">
|
||||
<!-- User image -->
|
||||
<li class="user-header" style="height: auto;">
|
||||
<div class="user-panel">
|
||||
<div class="pull-left image">
|
||||
<img src="<?php
|
||||
if (Yii::$app->user->isGuest) {
|
||||
echo $directoryAsset . "/img/user2-160x160.jpg";
|
||||
} else {
|
||||
echo Yii::$app->user->identity->user_image == null ? $directoryAsset . "/img/user2-160x160.jpg" : Yii::getAlias("@images_folder") . Yii::$app->user->identity->user_image;
|
||||
}
|
||||
?>" class="img-circle">
|
||||
</div>
|
||||
<div class="pull-left info">
|
||||
<p style="color: #fff;"><?= Yii::$app->user->isGuest ? "" : \Yii::$app->user->identity->first_name; ?></p>
|
||||
<a href="#" style="color: #fff;"><i class="fa fa-circle text-success"></i> <?php echo Yii::t("app", "Online"); ?></a>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
<li class="user-body" style="border:none">
|
||||
<ul style="list-style: none; padding: 0">
|
||||
<li><a class="text-bold" href="<?php echo yii\helpers\Url::to(['/user/profiles']); ?>"><i class="fa fa-user"></i> <?php echo Yii::t("app", "Thông tin cá nhân"); ?></a></li>
|
||||
<li><a class="text-bold" href="<?php echo yii\helpers\Url::to(['/user/change-password']); ?>"><i class="fa fa-lock"></i> <?php echo Yii::t("app", "Đổi mật khẩu"); ?></a></li>
|
||||
<li class="separator"><hr style="margin:0;padding:0"></li>
|
||||
<li>
|
||||
<a href="<?php echo yii\helpers\Url::to(["/site/logout"]); ?>" onclick="$(this).parent().find('form').submit();return false;"><i class="fa fa-sign-out"></i> <?php echo Yii::t("app", "Đăng xuất"); ?></a>
|
||||
<?php
|
||||
ActiveForm::begin([
|
||||
'action' => yii\helpers\Url::to(["/site/logout"]),
|
||||
'method' => 'POST',
|
||||
'options' => ['style' => 'display:none']
|
||||
]);
|
||||
?>
|
||||
<div class="pull-right">
|
||||
<button name="action" value="logout" class="btn btn-default btn-flat"><?php echo Yii::t("app", "Đăng xuất"); ?></button>
|
||||
</div>
|
||||
<?php ActiveForm::end(); ?>
|
||||
</li>
|
||||
</ul>
|
||||
<style>
|
||||
.user-body li a.text-bold{
|
||||
font-weight: bold;
|
||||
}
|
||||
.user-body li a .fa{
|
||||
color:#3c8dbc !important;
|
||||
}
|
||||
.user-body li{
|
||||
padding: 5px 0px;
|
||||
}
|
||||
</style>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<!-- User Account: style can be found in dropdown.less -->
|
||||
<!-- <li>
|
||||
<a href="#" data-toggle="control-sidebar"><i class="fa fa-gears"></i></a>
|
||||
</li>-->
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
||||
47
vendor/dmstr/yii2-adminlte-asset/example-views/yiisoft/yii2-app/layouts/left.php
vendored
Normal file
47
vendor/dmstr/yii2-adminlte-asset/example-views/yiisoft/yii2-app/layouts/left.php
vendored
Normal file
@@ -0,0 +1,47 @@
|
||||
<aside class="main-sidebar">
|
||||
|
||||
<section class="sidebar">
|
||||
|
||||
<!-- Sidebar user panel -->
|
||||
<div class="user-panel">
|
||||
<div class="pull-left image">
|
||||
<img src="<?php
|
||||
if (Yii::$app->user->isGuest) {
|
||||
echo $directoryAsset . "/img/user2-160x160.jpg";
|
||||
} else {
|
||||
echo Yii::$app->user->identity->user_image == null ? $directoryAsset . "/img/user2-160x160.jpg" : Yii::getAlias("@images_folder") . Yii::$app->user->identity->user_image;
|
||||
}
|
||||
?>" class="img-circle" alt="User Image"/>
|
||||
</div>
|
||||
<div class="pull-left info">
|
||||
<p>
|
||||
<?php
|
||||
if (Yii::$app->user->isGuest) {
|
||||
echo "";
|
||||
} else {
|
||||
echo Yii::$app->user->identity->first_name . " " . Yii::$app->user->identity->last_name;
|
||||
}
|
||||
?>
|
||||
</p>
|
||||
|
||||
<a href="#"><i class="fa fa-circle text-success"></i> <?php echo Yii::t("app", "Online"); ?></a>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<?=
|
||||
dmstr\widgets\Menu::widget(
|
||||
[
|
||||
'options' => ['class' => 'sidebar-menu tree', 'data-widget' => 'tree'],
|
||||
'items' => [
|
||||
['label' => 'Thống kê', 'url' => ['/logs'], 'icon' => 'bar-chart'],
|
||||
['label' => 'Danh sách xe', 'url' => ['/vehicle'], 'icon' => 'truck'],
|
||||
['label' => 'Người dùng', 'url' => ['/user'], 'icon' => 'users', 'visible' => Yii::$app->user->can("administrator")],
|
||||
['label' => 'Login', 'url' => ['site/login'], 'visible' => Yii::$app->user->isGuest],
|
||||
],
|
||||
]
|
||||
)
|
||||
?>
|
||||
|
||||
</section>
|
||||
|
||||
</aside>
|
||||
29
vendor/dmstr/yii2-adminlte-asset/example-views/yiisoft/yii2-app/layouts/main-login.php
vendored
Normal file
29
vendor/dmstr/yii2-adminlte-asset/example-views/yiisoft/yii2-app/layouts/main-login.php
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
use backend\assets\AppAsset;
|
||||
use yii\helpers\Html;
|
||||
|
||||
/* @var $this \yii\web\View */
|
||||
/* @var $content string */
|
||||
|
||||
dmstr\web\AdminLteAsset::register($this);
|
||||
?>
|
||||
<?php $this->beginPage() ?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="<?= Yii::$app->language ?>">
|
||||
<head>
|
||||
<meta charset="<?= Yii::$app->charset ?>"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<?= Html::csrfMetaTags() ?>
|
||||
<title><?= Html::encode($this->title) ?></title>
|
||||
<?php $this->head() ?>
|
||||
</head>
|
||||
<body class="login-page">
|
||||
|
||||
<?php $this->beginBody() ?>
|
||||
|
||||
<?= $content ?>
|
||||
|
||||
<?php $this->endBody() ?>
|
||||
</body>
|
||||
</html>
|
||||
<?php $this->endPage() ?>
|
||||
65
vendor/dmstr/yii2-adminlte-asset/example-views/yiisoft/yii2-app/layouts/main.php
vendored
Normal file
65
vendor/dmstr/yii2-adminlte-asset/example-views/yiisoft/yii2-app/layouts/main.php
vendored
Normal file
@@ -0,0 +1,65 @@
|
||||
<?php
|
||||
use yii\helpers\Html;
|
||||
|
||||
/* @var $this \yii\web\View */
|
||||
/* @var $content string */
|
||||
|
||||
|
||||
if (Yii::$app->controller->action->id === 'login') {
|
||||
/**
|
||||
* Do not use this code in your template. Remove it.
|
||||
* Instead, use the code $this->layout = '//main-login'; in your controller.
|
||||
*/
|
||||
echo $this->render(
|
||||
'main-login',
|
||||
['content' => $content]
|
||||
);
|
||||
} else {
|
||||
|
||||
if (class_exists('backend\assets\AppAsset')) {
|
||||
backend\assets\AppAsset::register($this);
|
||||
} else {
|
||||
app\assets\AppAsset::register($this);
|
||||
}
|
||||
|
||||
dmstr\web\AdminLteAsset::register($this);
|
||||
|
||||
$directoryAsset = Yii::$app->assetManager->getPublishedUrl('@vendor/almasaeed2010/adminlte/dist');
|
||||
?>
|
||||
<?php $this->beginPage() ?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="<?= Yii::$app->language ?>">
|
||||
<head>
|
||||
<meta charset="<?= Yii::$app->charset ?>"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<?= Html::csrfMetaTags() ?>
|
||||
<title><?= Html::encode($this->title) ?></title>
|
||||
<?php $this->head() ?>
|
||||
</head>
|
||||
<body class="hold-transition <?= \dmstr\helpers\AdminLteHelper::skinClass() ?> sidebar-mini sidebar-collapse">
|
||||
<?php $this->beginBody() ?>
|
||||
<div class="wrapper">
|
||||
|
||||
<?= $this->render(
|
||||
'header.php',
|
||||
['directoryAsset' => $directoryAsset]
|
||||
) ?>
|
||||
|
||||
<?= $this->render(
|
||||
'left.php',
|
||||
['directoryAsset' => $directoryAsset]
|
||||
)
|
||||
?>
|
||||
|
||||
<?= $this->render(
|
||||
'content.php',
|
||||
['content' => $content, 'directoryAsset' => $directoryAsset]
|
||||
) ?>
|
||||
|
||||
</div>
|
||||
|
||||
<?php $this->endBody() ?>
|
||||
</body>
|
||||
</html>
|
||||
<?php $this->endPage() ?>
|
||||
<?php } ?>
|
||||
44
vendor/dmstr/yii2-adminlte-asset/example-views/yiisoft/yii2-app/site/error.php
vendored
Normal file
44
vendor/dmstr/yii2-adminlte-asset/example-views/yiisoft/yii2-app/site/error.php
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
|
||||
use yii\helpers\Html;
|
||||
|
||||
/* @var $this yii\web\View */
|
||||
/* @var $name string */
|
||||
/* @var $message string */
|
||||
/* @var $exception Exception */
|
||||
|
||||
$this->title = $name;
|
||||
?>
|
||||
<section class="content">
|
||||
|
||||
<div class="error-page">
|
||||
<h2 class="headline text-info"><i class="fa fa-warning text-yellow"></i></h2>
|
||||
|
||||
<div class="error-content">
|
||||
<h3><?= $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 <a href='<?= Yii::$app->homeUrl ?>'>return to dashboard</a> or try using the search
|
||||
form.
|
||||
</p>
|
||||
|
||||
<form class='search-form'>
|
||||
<div class='input-group'>
|
||||
<input type="text" name="search" class='form-control' placeholder="Search"/>
|
||||
|
||||
<div class="input-group-btn">
|
||||
<button type="submit" name="submit" class="btn btn-primary"><i class="fa fa-search"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
69
vendor/dmstr/yii2-adminlte-asset/example-views/yiisoft/yii2-app/site/login.php
vendored
Normal file
69
vendor/dmstr/yii2-adminlte-asset/example-views/yiisoft/yii2-app/site/login.php
vendored
Normal file
@@ -0,0 +1,69 @@
|
||||
<?php
|
||||
|
||||
use yii\helpers\Html;
|
||||
use yii\bootstrap\ActiveForm;
|
||||
|
||||
/* @var $this yii\web\View */
|
||||
/* @var $form yii\bootstrap\ActiveForm */
|
||||
/* @var $model \common\models\LoginForm */
|
||||
|
||||
$this->title = 'Sign In';
|
||||
|
||||
$fieldOptions1 = [
|
||||
'options' => ['class' => 'form-group has-feedback'],
|
||||
'inputTemplate' => "{input}<span class='glyphicon glyphicon-envelope form-control-feedback'></span>"
|
||||
];
|
||||
|
||||
$fieldOptions2 = [
|
||||
'options' => ['class' => 'form-group has-feedback'],
|
||||
'inputTemplate' => "{input}<span class='glyphicon glyphicon-lock form-control-feedback'></span>"
|
||||
];
|
||||
?>
|
||||
<style>
|
||||
.login-box, .register-box{
|
||||
margin: 3% auto;
|
||||
}
|
||||
</style>
|
||||
<div class="login-box">
|
||||
<div class="login-logo">
|
||||
<img src="/images/logo.png" width="100%">
|
||||
</div>
|
||||
<!-- /.login-logo -->
|
||||
<div class="login-box-body">
|
||||
<p class="login-box-msg"><b>ĐĂNG NHẬP</b></p>
|
||||
|
||||
<?php $form = ActiveForm::begin(['id' => 'login-form', 'enableClientValidation' => false]); ?>
|
||||
|
||||
<?=
|
||||
$form
|
||||
->field($model, 'username', $fieldOptions1)
|
||||
->label(false)
|
||||
->textInput(['placeholder' => $model->getAttributeLabel('username')])
|
||||
?>
|
||||
|
||||
<?=
|
||||
$form
|
||||
->field($model, 'password', $fieldOptions2)
|
||||
->label(false)
|
||||
->passwordInput(['placeholder' => $model->getAttributeLabel('password')])
|
||||
?>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-7">
|
||||
<?= $form->field($model, 'rememberMe')->checkbox() ?>
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
<div class="col-xs-5">
|
||||
<?= Html::submitButton('Đăng nhập', ['class' => 'btn btn-primary btn-block', 'name' => 'login-button']) ?>
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
|
||||
|
||||
<?php ActiveForm::end(); ?>
|
||||
|
||||
<a href="#">I forgot my password</a><br>
|
||||
|
||||
</div>
|
||||
<!-- /.login-box-body -->
|
||||
</div><!-- /.login-box -->
|
||||
Reference in New Issue
Block a user