Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
edb77393
Commit
edb77393
authored
Aug 13, 2013
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes #736
parent
10e436ee
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
271 additions
and
340 deletions
+271
-340
AppAsset.php
apps/advanced/backend/config/AppAsset.php
+1
-0
main.php
apps/advanced/backend/views/layouts/main.php
+33
-30
index.php
apps/advanced/backend/views/site/index.php
+37
-31
login.php
apps/advanced/backend/views/site/login.php
+16
-9
site.css
apps/advanced/backend/web/css/site.css
+10
-69
AppAsset.php
apps/advanced/frontend/config/AppAsset.php
+1
-0
main.php
apps/advanced/frontend/views/layouts/main.php
+36
-42
about.php
apps/advanced/frontend/views/site/about.php
+6
-6
contact.php
apps/advanced/frontend/views/site/contact.php
+23
-18
index.php
apps/advanced/frontend/views/site/index.php
+37
-31
login.php
apps/advanced/frontend/views/site/login.php
+19
-12
requestPasswordResetToken.php
...dvanced/frontend/views/site/requestPasswordResetToken.php
+13
-7
resetPassword.php
apps/advanced/frontend/views/site/resetPassword.php
+14
-7
signup.php
apps/advanced/frontend/views/site/signup.php
+15
-9
site.css
apps/advanced/frontend/web/css/site.css
+10
-69
No files found.
apps/advanced/backend/config/AppAsset.php
View file @
edb77393
...
...
@@ -6,6 +6,7 @@
*/
namespace
backend\config
;
use
yii\web\AssetBundle
;
/**
...
...
apps/advanced/backend/views/layouts/main.php
View file @
edb77393
<?php
use
backend\config\AppAsset
;
use
yii\helpers\Html
;
use
yii\widgets\Menu
;
use
yii\bootstrap\Nav
;
use
yii\bootstrap\NavBar
;
use
yii\widgets\Breadcrumbs
;
/**
...
...
@@ -19,43 +20,45 @@ AppAsset::register($this);
<?php
$this
->
head
();
?>
</head>
<body>
<div
class=
"container"
>
<?php
$this
->
beginBody
();
?>
<div
class=
"masthead"
>
<h3
class=
"muted"
>
My Company
</h3>
<div
class=
"navbar fullwidth"
>
<div
class=
"navbar-inner"
>
<div
class=
"container"
>
<?php
echo
Menu
::
widget
(
array
(
'options'
=>
array
(
'class'
=>
'nav'
),
'items'
=>
array
(
array
(
'label'
=>
'Home'
,
'url'
=>
array
(
'/site/index'
)),
Yii
::
$app
->
user
->
isGuest
?
array
(
'label'
=>
'Login'
,
'url'
=>
array
(
'/site/login'
))
:
array
(
'label'
=>
'Logout ('
.
Yii
::
$app
->
user
->
identity
->
username
.
')'
,
'url'
=>
array
(
'/site/logout'
)),
),
));
?>
</div>
</div>
</div>
<!-- /.navbar -->
</div>
<?php
NavBar
::
begin
(
array
(
'brandLabel'
=>
'My Company'
,
'brandUrl'
=>
Yii
::
$app
->
homeUrl
,
'options'
=>
array
(
'class'
=>
'navbar-inverse navbar-fixed-top'
,
),
));
$menuItems
=
array
(
array
(
'label'
=>
'Home'
,
'url'
=>
array
(
'/site/index'
)),
);
if
(
Yii
::
$app
->
user
->
isGuest
)
{
$menuItems
[]
=
array
(
'label'
=>
'Login'
,
'url'
=>
array
(
'/site/login'
));
}
else
{
$menuItems
[]
=
array
(
'label'
=>
'Logout ('
.
Yii
::
$app
->
user
->
identity
->
username
.
')'
,
'url'
=>
array
(
'/site/logout'
));
}
echo
Nav
::
widget
(
array
(
'options'
=>
array
(
'class'
=>
'navbar-nav pull-right'
),
'items'
=>
$menuItems
,
));
NavBar
::
end
();
?>
<div
class=
"container"
>
<?php
echo
Breadcrumbs
::
widget
(
array
(
'links'
=>
isset
(
$this
->
params
[
'breadcrumbs'
])
?
$this
->
params
[
'breadcrumbs'
]
:
array
(),
));
?>
<?php
echo
$content
;
?>
</div>
<hr>
<footer
class=
"footer"
>
<div
class=
"container"
>
<p
class=
"pull-left"
>
©
My Company
<?php
echo
date
(
'Y'
);
?>
</p>
<p
class=
"pull-right"
>
<?php
echo
Yii
::
powered
();
?>
</p>
</div>
</footer>
<div
class=
"footer"
>
<p>
©
My Company
<?php
echo
date
(
'Y'
);
?>
</p>
<p>
<?php
echo
Yii
::
powered
();
?>
Template by
<a
href=
"http://twitter.github.io/bootstrap/"
>
Twitter Bootstrap
</a>
</p>
</div>
<?php
$this
->
endBody
();
?>
</div>
</body>
...
...
apps/advanced/backend/views/site/index.php
View file @
edb77393
...
...
@@ -2,46 +2,52 @@
/**
* @var yii\base\View $this
*/
$this
->
title
=
'
Welcome
'
;
$this
->
title
=
'
My Yii Application
'
;
?>
<div
class=
"jumbotron"
>
<h1>
Welcome!
</h1>
<div
class=
"site-index"
>
<p
class=
"lead"
>
Cras justo odio, dapibus ac facilisis in, egestas eget quam. Fusce dapibus, tellus ac cursus
commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.
</p>
<a
class=
"btn btn-large btn-success"
href=
"http://www.yiiframework.com"
>
Get started with Yii
</a>
</div>
<div
class=
"jumbotron"
>
<h1>
Congratulations!
</h1>
<hr
>
<p
class=
"lead"
>
You have successfully created your Yii-powered application.
</p
>
<!-- Example row of columns -->
<div
class=
"row-fluid"
>
<div
class=
"span4"
>
<h2>
Heading
</h2>
<p><a
class=
"btn btn-large btn-success"
href=
"http://www.yiiframework.com"
>
Get started with Yii
</a></p>
</div>
<p>
Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris
condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod.
Donec sed odio dui.
</p>
<div
class=
"body-content"
>
<p><a
class=
"btn"
href=
"#"
>
View details
»
</a></p>
</div>
<div
class=
"span4"
>
<h2>
Heading
</h2>
<div
class=
"row"
>
<div
class=
"col-lg-4"
>
<h2>
Heading
</h2>
<p>
Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris
condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod.
Donec sed odio dui.
</p>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et
dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip
ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu
fugiat nulla pariatur.
</p>
<p><a
class=
"btn"
href=
"#"
>
View details
»
</a></p>
</div>
<div
class=
"span
4"
>
<h2>
Heading
</h2>
<p><a
class=
"btn btn-default"
href=
"http://www.yiiframework.com/doc/"
>
Yii Documentation
»
</a></p>
</div>
<div
class=
"col-lg-
4"
>
<h2>
Heading
</h2>
<p>
Donec sed odio dui. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Vestibulum id ligula porta
felis euismod semper. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum
massa.
</p>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et
dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip
ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu
fugiat nulla pariatur.
</p>
<p><a
class=
"btn btn-default"
href=
"http://www.yiiframework.com/forum/"
>
Yii Forum
»
</a></p>
</div>
<div
class=
"col-lg-4"
>
<h2>
Heading
</h2>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et
dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip
ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu
fugiat nulla pariatur.
</p>
<p><a
class=
"btn btn-default"
href=
"http://www.yiiframework.com/extensions/"
>
Yii Extensions
»
</a></p>
</div>
</div>
<p><a
class=
"btn"
href=
"#"
>
View details
»
</a></p>
</div>
</div>
apps/advanced/backend/views/site/login.php
View file @
edb77393
...
...
@@ -10,15 +10,21 @@ use yii\widgets\ActiveForm;
$this
->
title
=
'Login'
;
$this
->
params
[
'breadcrumbs'
][]
=
$this
->
title
;
?>
<h1>
<?php
echo
Html
::
encode
(
$this
->
title
);
?>
</h1>
<div
class=
"site-login"
>
<h1>
<?php
echo
Html
::
encode
(
$this
->
title
);
?>
</h1>
<p>
Please fill out the following fields to login:
</p>
<p>
Please fill out the following fields to login:
</p>
<?php
$form
=
ActiveForm
::
begin
(
array
(
'options'
=>
array
(
'class'
=>
'form-horizontal'
)));
?>
<?php
echo
$form
->
field
(
$model
,
'username'
)
->
textInput
();
?>
<?php
echo
$form
->
field
(
$model
,
'password'
)
->
passwordInput
();
?>
<?php
echo
$form
->
field
(
$model
,
'rememberMe'
)
->
checkbox
();
?>
<div
class=
"form-actions"
>
<?php
echo
Html
::
submitButton
(
'Login'
,
array
(
'class'
=>
'btn btn-primary'
));
?>
<div
class=
"row"
>
<div
class=
"col-lg-5"
>
<?php
$form
=
ActiveForm
::
begin
(
array
(
'id'
=>
'login-form'
));
?>
<?php
echo
$form
->
field
(
$model
,
'username'
)
->
textInput
();
?>
<?php
echo
$form
->
field
(
$model
,
'password'
)
->
passwordInput
();
?>
<?php
echo
$form
->
field
(
$model
,
'rememberMe'
)
->
checkbox
();
?>
<div
class=
"form-actions"
>
<?php
echo
Html
::
submitButton
(
'Login'
,
array
(
'class'
=>
'btn btn-primary'
));
?>
</div>
<?php
ActiveForm
::
end
();
?>
</div>
</div>
<
?php
ActiveForm
::
end
();
?
>
<
/div
>
\ No newline at end of file
apps/advanced/backend/web/css/site.css
View file @
edb77393
body
{
padding-top
:
20px
;
padding-bottom
:
60px
;
padding-top
:
70px
;
}
/* Custom container */
.container
{
margin
:
0
auto
;
max-width
:
1000px
;
.footer
{
border-top
:
1px
solid
#ddd
;
margin-top
:
30px
;
padding-top
:
15px
;
padding-bottom
:
30px
;
}
.container
>
hr
{
margin
:
60px
0
;
}
/* Main marketing message and sign up button */
.jumbotron
{
margin
:
80px
0
;
text-align
:
center
;
}
.jumbotron
h1
{
font-size
:
100px
;
line-height
:
1
;
}
.jumbotron
.lead
{
font-size
:
24px
;
line-height
:
1.25
;
text-align
:
center
;
background-color
:
transparent
;
}
.jumbotron
.btn
{
font-size
:
21px
;
padding
:
14px
24px
;
}
/* Supporting marketing content */
.marketing
{
margin
:
60px
0
;
}
.marketing
p
+
h4
{
margin-top
:
28px
;
}
/* Customize the navbar links to be fill the entire space of the .navbar */
.navbar.fullwidth
.navbar-inner
{
padding
:
0
;
}
.navbar.fullwidth
.nav
{
margin
:
0
;
display
:
table
;
width
:
100%
;
}
.navbar.fullwidth
.nav
li
{
display
:
table-cell
;
width
:
1%
;
float
:
none
;
}
.navbar.fullwidth
.nav
li
a
{
font-weight
:
bold
;
text-align
:
center
;
border-left
:
1px
solid
rgba
(
255
,
255
,
255
,
.75
);
border-right
:
1px
solid
rgba
(
0
,
0
,
0
,
.1
);
}
.navbar.fullwidth
.nav
li
:first-child
a
{
border-left
:
0
;
border-radius
:
3px
0
0
3px
;
}
.navbar.fullwidth
.nav
li
:last-child
a
{
border-right
:
0
;
border-radius
:
0
3px
3px
0
;
font-size
:
21px
;
padding
:
14px
24px
;
}
apps/advanced/frontend/config/AppAsset.php
View file @
edb77393
...
...
@@ -6,6 +6,7 @@
*/
namespace
frontend\config
;
use
yii\web\AssetBundle
;
/**
...
...
apps/advanced/frontend/views/layouts/main.php
View file @
edb77393
<?php
use
frontend\config\AppAsset
;
use
yii\helpers\Html
;
use
yii\widgets\Menu
;
use
yii\bootstrap\Nav
;
use
yii\bootstrap\NavBar
;
use
yii\widgets\Breadcrumbs
;
use
frontend\widgets\Alert
;
...
...
@@ -20,57 +21,50 @@ AppAsset::register($this);
<?php
$this
->
head
();
?>
</head>
<body>
<div
class=
"container"
>
<?php
$this
->
beginBody
();
?>
<div
class=
"masthead"
>
<h3
class=
"muted"
>
My Company
</h3>
<div
class=
"navbar fullwidth"
>
<div
class=
"navbar-inner"
>
<div
class=
"container"
>
<?php
$menuItems
=
array
(
array
(
'label'
=>
'Home'
,
'url'
=>
array
(
'/site/index'
)),
array
(
'label'
=>
'About'
,
'url'
=>
array
(
'/site/about'
)),
array
(
'label'
=>
'Contact'
,
'url'
=>
array
(
'/site/contact'
)),
);
if
(
Yii
::
$app
->
user
->
isGuest
)
{
$menuItems
[]
=
array
(
'label'
=>
'Signup'
,
'url'
=>
array
(
'/site/signup'
));
$menuItems
[]
=
array
(
'label'
=>
'Login'
,
'url'
=>
array
(
'/site/login'
));
}
else
{
$menuItems
[]
=
array
(
'label'
=>
'Logout ('
.
Yii
::
$app
->
user
->
identity
->
username
.
')'
,
'url'
=>
array
(
'/site/logout'
));
}
echo
Menu
::
widget
(
array
(
'options'
=>
array
(
'class'
=>
'nav'
),
'items'
=>
$menuItems
,
));
?>
</div>
</div>
</div>
<!-- /.navbar -->
</div>
<?php
NavBar
::
begin
(
array
(
'brandLabel'
=>
'My Company'
,
'brandUrl'
=>
Yii
::
$app
->
homeUrl
,
'options'
=>
array
(
'class'
=>
'navbar-inverse navbar-fixed-top'
,
),
));
$menuItems
=
array
(
array
(
'label'
=>
'Home'
,
'url'
=>
array
(
'/site/index'
)),
array
(
'label'
=>
'About'
,
'url'
=>
array
(
'/site/about'
)),
array
(
'label'
=>
'Contact'
,
'url'
=>
array
(
'/site/contact'
)),
);
if
(
Yii
::
$app
->
user
->
isGuest
)
{
$menuItems
[]
=
array
(
'label'
=>
'Signup'
,
'url'
=>
array
(
'/site/signup'
));
$menuItems
[]
=
array
(
'label'
=>
'Login'
,
'url'
=>
array
(
'/site/login'
));
}
else
{
$menuItems
[]
=
array
(
'label'
=>
'Logout ('
.
Yii
::
$app
->
user
->
identity
->
username
.
')'
,
'url'
=>
array
(
'/site/logout'
));
}
echo
Nav
::
widget
(
array
(
'options'
=>
array
(
'class'
=>
'navbar-nav pull-right'
),
'items'
=>
$menuItems
,
));
NavBar
::
end
();
?>
<div
class=
"container"
>
<?php
echo
Breadcrumbs
::
widget
(
array
(
'links'
=>
isset
(
$this
->
params
[
'breadcrumbs'
])
?
$this
->
params
[
'breadcrumbs'
]
:
array
(),
));
?>
<?php
echo
Alert
::
widget
()
?>
<?php
echo
$content
;
?>
</div>
<hr>
<footer
class=
"footer"
>
<div
class=
"container"
>
<p
class=
"pull-left"
>
©
My Company
<?php
echo
date
(
'Y'
);
?>
</p>
<p
class=
"pull-right"
>
<?php
echo
Yii
::
powered
();
?>
</p>
</div>
</footer>
<div
class=
"footer"
>
<p>
©
My Company
<?php
echo
date
(
'Y'
);
?>
</p>
<p>
<?php
echo
Yii
::
powered
();
?>
Template by
<a
href=
"http://twitter.github.io/bootstrap/"
>
Twitter Bootstrap
</a>
</p>
</div>
<?php
$this
->
endBody
();
?>
</div>
</body>
</html>
<?php
$this
->
endPage
();
?>
apps/advanced/frontend/views/site/about.php
View file @
edb77393
<?php
use
yii\helpers\Html
;
/**
* @var yii\base\View $this
*/
$this
->
title
=
'About'
;
$this
->
params
[
'breadcrumbs'
][]
=
$this
->
title
;
?>
<h1>
<?php
echo
Html
::
encode
(
$this
->
title
);
?>
</h1>
<p>
This is the About page. You may modify the following file to customize its content:
</p>
<div
class=
"site-about"
>
<h1>
<?php
echo
Html
::
encode
(
$this
->
title
);
?>
</h1>
<code>
<?php
echo
__FILE__
;
?>
</code
>
<p>
This is the About page. You may modify the following file to customize its content:
</p
>
<code>
<?php
echo
__FILE__
;
?>
</code>
</div>
apps/advanced/frontend/views/site/contact.php
View file @
edb77393
...
...
@@ -11,24 +11,29 @@ use yii\captcha\Captcha;
$this
->
title
=
'Contact'
;
$this
->
params
[
'breadcrumbs'
][]
=
$this
->
title
;
?>
<h1>
<?php
echo
Html
::
encode
(
$this
->
title
);
?>
</h1>
<div
class=
"site-contact"
>
<h1>
<?php
echo
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>
<p>
If you have business inquiries or other questions, please fill out the following form to contact us. Thank you.
</p>
<?php
$form
=
ActiveForm
::
begin
(
array
(
'options'
=>
array
(
'class'
=>
'form-horizontal'
),
'fieldConfig'
=>
array
(
'inputOptions'
=>
array
(
'class'
=>
'input-xlarge'
)),
));
?>
<?php
echo
$form
->
field
(
$model
,
'name'
)
->
textInput
();
?>
<?php
echo
$form
->
field
(
$model
,
'email'
)
->
textInput
();
?>
<?php
echo
$form
->
field
(
$model
,
'subject'
)
->
textInput
();
?>
<?php
echo
$form
->
field
(
$model
,
'body'
)
->
textArea
(
array
(
'rows'
=>
6
));
?>
<?php
echo
$form
->
field
(
$model
,
'verifyCode'
)
->
widget
(
Captcha
::
className
(),
array
(
'options'
=>
array
(
'class'
=>
'input-medium'
),
));
?>
<div
class=
"form-actions"
>
<?php
echo
Html
::
submitButton
(
'Submit'
,
array
(
'class'
=>
'btn btn-primary'
));
?>
<div
class=
"row"
>
<div
class=
"col-lg-5"
>
<?php
$form
=
ActiveForm
::
begin
(
array
(
'id'
=>
'contact-form'
));
?>
<?php
echo
$form
->
field
(
$model
,
'name'
)
->
textInput
();
?>
<?php
echo
$form
->
field
(
$model
,
'email'
)
->
textInput
();
?>
<?php
echo
$form
->
field
(
$model
,
'subject'
)
->
textInput
();
?>
<?php
echo
$form
->
field
(
$model
,
'body'
)
->
textArea
(
array
(
'rows'
=>
6
));
?>
<?php
echo
$form
->
field
(
$model
,
'verifyCode'
)
->
widget
(
Captcha
::
className
(),
array
(
'options'
=>
array
(
'class'
=>
'form-control'
),
'template'
=>
'<div class="row"><div class="col-lg-3">{image}</div><div class="col-lg-6">{input}</div></div>'
,
));
?>
<div
class=
"form-actions"
>
<?php
echo
Html
::
submitButton
(
'Submit'
,
array
(
'class'
=>
'btn btn-primary'
));
?>
</div>
<?php
ActiveForm
::
end
();
?>
</div>
</div>
<?php
ActiveForm
::
end
();
?>
</div>
apps/advanced/frontend/views/site/index.php
View file @
edb77393
...
...
@@ -2,46 +2,52 @@
/**
* @var yii\base\View $this
*/
$this
->
title
=
'
Welcome
'
;
$this
->
title
=
'
My Yii Application
'
;
?>
<div
class=
"jumbotron"
>
<h1>
Welcome!
</h1>
<div
class=
"site-index"
>
<p
class=
"lead"
>
Cras justo odio, dapibus ac facilisis in, egestas eget quam. Fusce dapibus, tellus ac cursus
commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.
</p>
<a
class=
"btn btn-large btn-success"
href=
"http://www.yiiframework.com"
>
Get started with Yii
</a>
</div>
<div
class=
"jumbotron"
>
<h1>
Congratulations!
</h1>
<hr
>
<p
class=
"lead"
>
You have successfully created your Yii-powered application.
</p
>
<!-- Example row of columns -->
<div
class=
"row-fluid"
>
<div
class=
"span4"
>
<h2>
Heading
</h2>
<p><a
class=
"btn btn-large btn-success"
href=
"http://www.yiiframework.com"
>
Get started with Yii
</a></p>
</div>
<p>
Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris
condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod.
Donec sed odio dui.
</p>
<div
class=
"body-content"
>
<p><a
class=
"btn"
href=
"#"
>
View details
»
</a></p>
</div>
<div
class=
"span4"
>
<h2>
Heading
</h2>
<div
class=
"row"
>
<div
class=
"col-lg-4"
>
<h2>
Heading
</h2>
<p>
Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris
condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod.
Donec sed odio dui.
</p>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et
dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip
ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu
fugiat nulla pariatur.
</p>
<p><a
class=
"btn"
href=
"#"
>
View details
»
</a></p>
</div>
<div
class=
"span
4"
>
<h2>
Heading
</h2>
<p><a
class=
"btn btn-default"
href=
"http://www.yiiframework.com/doc/"
>
Yii Documentation
»
</a></p>
</div>
<div
class=
"col-lg-
4"
>
<h2>
Heading
</h2>
<p>
Donec sed odio dui. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Vestibulum id ligula porta
felis euismod semper. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum
massa.
</p>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et
dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip
ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu
fugiat nulla pariatur.
</p>
<p><a
class=
"btn btn-default"
href=
"http://www.yiiframework.com/forum/"
>
Yii Forum
»
</a></p>
</div>
<div
class=
"col-lg-4"
>
<h2>
Heading
</h2>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et
dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip
ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu
fugiat nulla pariatur.
</p>
<p><a
class=
"btn btn-default"
href=
"http://www.yiiframework.com/extensions/"
>
Yii Extensions
»
</a></p>
</div>
</div>
<p><a
class=
"btn"
href=
"#"
>
View details
»
</a></p>
</div>
</div>
apps/advanced/frontend/views/site/login.php
View file @
edb77393
...
...
@@ -10,17 +10,24 @@ use yii\widgets\ActiveForm;
$this
->
title
=
'Login'
;
$this
->
params
[
'breadcrumbs'
][]
=
$this
->
title
;
?>
<h1>
<?php
echo
Html
::
encode
(
$this
->
title
);
?>
</h1>
<div
class=
"site-login"
>
<h1>
<?php
echo
Html
::
encode
(
$this
->
title
);
?>
</h1>
<p>
Please fill out the following fields to login:
</p>
<p>
Please fill out the following fields to login:
</p>
<?php
$form
=
ActiveForm
::
begin
(
array
(
'options'
=>
array
(
'class'
=>
'form-horizontal'
)));
?>
<?php
echo
$form
->
field
(
$model
,
'username'
)
->
textInput
();
?>
<?php
echo
$form
->
field
(
$model
,
'password'
)
->
passwordInput
();
?>
<?php
echo
$form
->
field
(
$model
,
'rememberMe'
)
->
checkbox
();
?>
<div
class=
"form-actions"
>
<?php
echo
Html
::
submitButton
(
'Login'
,
array
(
'class'
=>
'btn btn-primary'
));
?>
<div
class=
"row"
>
<div
class=
"col-lg-5"
>
<?php
$form
=
ActiveForm
::
begin
(
array
(
'id'
=>
'login-form'
));
?>
<?php
echo
$form
->
field
(
$model
,
'username'
)
->
textInput
();
?>
<?php
echo
$form
->
field
(
$model
,
'password'
)
->
passwordInput
();
?>
<?php
echo
$form
->
field
(
$model
,
'rememberMe'
)
->
checkbox
();
?>
<div
style=
"color:#999;margin:1em 0"
>
If you forgot your password you can
<?php
echo
Html
::
a
(
'reset it'
,
array
(
'site/request-password-reset'
))
?>
.
</div>
<div
class=
"form-actions"
>
<?php
echo
Html
::
submitButton
(
'Login'
,
array
(
'class'
=>
'btn btn-primary'
));
?>
</div>
<?php
ActiveForm
::
end
();
?>
</div>
</div>
<?php
ActiveForm
::
end
();
?>
<p>
If you forgot your password you can
<?php
echo
Html
::
a
(
'reset it'
,
array
(
'site/request-password-reset'
))
?>
.
</p>
\ No newline at end of file
</div>
\ No newline at end of file
apps/advanced/frontend/views/site/requestPasswordResetToken.php
View file @
edb77393
...
...
@@ -10,13 +10,19 @@ use yii\widgets\ActiveForm;
$this
->
title
=
'Request password reset'
;
$this
->
params
[
'breadcrumbs'
][]
=
$this
->
title
;
?>
<h1>
<?php
echo
Html
::
encode
(
$this
->
title
);
?>
</h1>
<div
class=
"site-request-password-reset"
>
<h1>
<?php
echo
Html
::
encode
(
$this
->
title
);
?>
</h1>
<p>
Please fill out your email. A link to reset password will be sent there.
</p>
<p>
Please fill out your email. A link to reset password will be sent there.
</p>
<?php
$form
=
ActiveForm
::
begin
(
array
(
'options'
=>
array
(
'class'
=>
'form-horizontal'
)));
?>
<?php
echo
$form
->
field
(
$model
,
'email'
)
->
textInput
();
?>
<div
class=
"form-actions"
>
<?php
echo
Html
::
submitButton
(
'Send'
,
array
(
'class'
=>
'btn btn-primary'
));
?>
<div
class=
"row"
>
<div
class=
"col-lg-5"
>
<?php
$form
=
ActiveForm
::
begin
(
array
(
'id'
=>
'request-password-reset-form'
));
?>
<?php
echo
$form
->
field
(
$model
,
'email'
)
->
textInput
();
?>
<div
class=
"form-actions"
>
<?php
echo
Html
::
submitButton
(
'Send'
,
array
(
'class'
=>
'btn btn-primary'
));
?>
</div>
<?php
ActiveForm
::
end
();
?>
</div>
</div>
<
?php
ActiveForm
::
end
();
?
>
<
/div
>
apps/advanced/frontend/views/site/resetPassword.php
View file @
edb77393
...
...
@@ -10,13 +10,19 @@ use yii\widgets\ActiveForm;
$this
->
title
=
'Reset password'
;
$this
->
params
[
'breadcrumbs'
][]
=
$this
->
title
;
?>
<h1>
<?php
echo
Html
::
encode
(
$this
->
title
);
?>
</h1>
<div
class=
"site-reset-password"
>
<h1>
<?php
echo
Html
::
encode
(
$this
->
title
);
?>
</h1>
<p>
Please choose your new password:
</p>
<p>
Please choose your new password:
</p>
<?php
$form
=
ActiveForm
::
begin
(
array
(
'options'
=>
array
(
'class'
=>
'form-horizontal'
)));
?>
<?php
echo
$form
->
field
(
$model
,
'password'
)
->
passwordInput
();
?>
<div
class=
"form-actions"
>
<?php
echo
Html
::
submitButton
(
'Save'
,
array
(
'class'
=>
'btn btn-primary'
));
?>
<div
class=
"row"
>
<div
class=
"col-lg-5"
>
<?php
$form
=
ActiveForm
::
begin
(
array
(
'id'
=>
'reset-password-form'
));
?>
<?php
echo
$form
->
field
(
$model
,
'password'
)
->
passwordInput
();
?>
<div
class=
"form-actions"
>
<?php
echo
Html
::
submitButton
(
'Save'
,
array
(
'class'
=>
'btn btn-primary'
));
?>
</div>
<?php
ActiveForm
::
end
();
?>
</div>
</div>
<
?php
ActiveForm
::
end
();
?
>
<
/div
>
\ No newline at end of file
apps/advanced/frontend/views/site/signup.php
View file @
edb77393
...
...
@@ -10,15 +10,21 @@ use yii\widgets\ActiveForm;
$this
->
title
=
'Signup'
;
$this
->
params
[
'breadcrumbs'
][]
=
$this
->
title
;
?>
<h1>
<?php
echo
Html
::
encode
(
$this
->
title
);
?>
</h1>
<div
class=
"site-signup"
>
<h1>
<?php
echo
Html
::
encode
(
$this
->
title
);
?>
</h1>
<p>
Please fill out the following fields to signup:
</p>
<p>
Please fill out the following fields to signup:
</p>
<?php
$form
=
ActiveForm
::
begin
(
array
(
'options'
=>
array
(
'class'
=>
'form-horizontal'
)));
?>
<?php
echo
$form
->
field
(
$model
,
'username'
)
->
textInput
();
?>
<?php
echo
$form
->
field
(
$model
,
'email'
)
->
textInput
();
?>
<?php
echo
$form
->
field
(
$model
,
'password'
)
->
passwordInput
();
?>
<div
class=
"form-actions"
>
<?php
echo
Html
::
submitButton
(
'Signup'
,
array
(
'class'
=>
'btn btn-primary'
));
?>
<div
class=
"row"
>
<div
class=
"col-lg-5"
>
<?php
$form
=
ActiveForm
::
begin
(
array
(
'id'
=>
'form-signup'
));
?>
<?php
echo
$form
->
field
(
$model
,
'username'
)
->
textInput
();
?>
<?php
echo
$form
->
field
(
$model
,
'email'
)
->
textInput
();
?>
<?php
echo
$form
->
field
(
$model
,
'password'
)
->
passwordInput
();
?>
<div
class=
"form-actions"
>
<?php
echo
Html
::
submitButton
(
'Signup'
,
array
(
'class'
=>
'btn btn-primary'
));
?>
</div>
<?php
ActiveForm
::
end
();
?>
</div>
</div>
<
?php
ActiveForm
::
end
();
?
>
<
/div
>
apps/advanced/frontend/web/css/site.css
View file @
edb77393
body
{
padding-top
:
20px
;
padding-bottom
:
60px
;
padding-top
:
70px
;
}
/* Custom container */
.container
{
margin
:
0
auto
;
max-width
:
1000px
;
.footer
{
border-top
:
1px
solid
#ddd
;
margin-top
:
30px
;
padding-top
:
15px
;
padding-bottom
:
30px
;
}
.container
>
hr
{
margin
:
60px
0
;
}
/* Main marketing message and sign up button */
.jumbotron
{
margin
:
80px
0
;
text-align
:
center
;
}
.jumbotron
h1
{
font-size
:
100px
;
line-height
:
1
;
}
.jumbotron
.lead
{
font-size
:
24px
;
line-height
:
1.25
;
text-align
:
center
;
background-color
:
transparent
;
}
.jumbotron
.btn
{
font-size
:
21px
;
padding
:
14px
24px
;
}
/* Supporting marketing content */
.marketing
{
margin
:
60px
0
;
}
.marketing
p
+
h4
{
margin-top
:
28px
;
}
/* Customize the navbar links to be fill the entire space of the .navbar */
.navbar.fullwidth
.navbar-inner
{
padding
:
0
;
}
.navbar.fullwidth
.nav
{
margin
:
0
;
display
:
table
;
width
:
100%
;
}
.navbar.fullwidth
.nav
li
{
display
:
table-cell
;
width
:
1%
;
float
:
none
;
}
.navbar.fullwidth
.nav
li
a
{
font-weight
:
bold
;
text-align
:
center
;
border-left
:
1px
solid
rgba
(
255
,
255
,
255
,
.75
);
border-right
:
1px
solid
rgba
(
0
,
0
,
0
,
.1
);
}
.navbar.fullwidth
.nav
li
:first-child
a
{
border-left
:
0
;
border-radius
:
3px
0
0
3px
;
}
.navbar.fullwidth
.nav
li
:last-child
a
{
border-right
:
0
;
border-radius
:
0
3px
3px
0
;
font-size
:
21px
;
padding
:
14px
24px
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment