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
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
208 additions
and
277 deletions
+208
-277
AppAsset.php
apps/advanced/backend/config/AppAsset.php
+1
-0
main.php
apps/advanced/backend/views/layouts/main.php
+32
-29
index.php
apps/advanced/backend/views/site/index.php
+32
-26
login.php
apps/advanced/backend/views/site/login.php
+11
-4
site.css
apps/advanced/backend/web/css/site.css
+7
-66
AppAsset.php
apps/advanced/frontend/config/AppAsset.php
+1
-0
main.php
apps/advanced/frontend/views/layouts/main.php
+20
-26
about.php
apps/advanced/frontend/views/site/about.php
+6
-6
contact.php
apps/advanced/frontend/views/site/contact.php
+14
-9
index.php
apps/advanced/frontend/views/site/index.php
+32
-26
login.php
apps/advanced/frontend/views/site/login.php
+14
-7
requestPasswordResetToken.php
...dvanced/frontend/views/site/requestPasswordResetToken.php
+10
-4
resetPassword.php
apps/advanced/frontend/views/site/resetPassword.php
+11
-4
signup.php
apps/advanced/frontend/views/site/signup.php
+10
-4
site.css
apps/advanced/frontend/web/css/site.css
+7
-66
No files found.
apps/advanced/backend/config/AppAsset.php
View file @
edb77393
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
*/
*/
namespace
backend\config
;
namespace
backend\config
;
use
yii\web\AssetBundle
;
use
yii\web\AssetBundle
;
/**
/**
...
...
apps/advanced/backend/views/layouts/main.php
View file @
edb77393
<?php
<?php
use
backend\config\AppAsset
;
use
backend\config\AppAsset
;
use
yii\helpers\Html
;
use
yii\helpers\Html
;
use
yii\widgets\Menu
;
use
yii\bootstrap\Nav
;
use
yii\bootstrap\NavBar
;
use
yii\widgets\Breadcrumbs
;
use
yii\widgets\Breadcrumbs
;
/**
/**
...
@@ -19,43 +20,45 @@ AppAsset::register($this);
...
@@ -19,43 +20,45 @@ AppAsset::register($this);
<?php
$this
->
head
();
?>
<?php
$this
->
head
();
?>
</head>
</head>
<body>
<body>
<div
class=
"container"
>
<?php
$this
->
beginBody
();
?>
<?php
$this
->
beginBody
();
?>
<div
class=
"masthead"
>
<?php
<h3
class=
"muted"
>
My Company
</h3>
NavBar
::
begin
(
array
(
'brandLabel'
=>
'My Company'
,
<div
class=
"navbar fullwidth"
>
'brandUrl'
=>
Yii
::
$app
->
homeUrl
,
<div
class=
"navbar-inner"
>
'options'
=>
array
(
<div
class=
"container"
>
'class'
=>
'navbar-inverse navbar-fixed-top'
,
<?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>
$menuItems
=
array
(
</div>
array
(
'label'
=>
'Home'
,
'url'
=>
array
(
'/site/index'
)),
</div>
);
<!-- /.navbar -->
if
(
Yii
::
$app
->
user
->
isGuest
)
{
</div>
$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
(
<?php
echo
Breadcrumbs
::
widget
(
array
(
'links'
=>
isset
(
$this
->
params
[
'breadcrumbs'
])
?
$this
->
params
[
'breadcrumbs'
]
:
array
(),
'links'
=>
isset
(
$this
->
params
[
'breadcrumbs'
])
?
$this
->
params
[
'breadcrumbs'
]
:
array
(),
));
?>
));
?>
<?php
echo
$content
;
?>
<?php
echo
$content
;
?>
</div>
<hr>
<footer
class=
"footer"
>
<div
class=
"container"
>
<div
class=
"footer"
>
<p
class=
"pull-left"
>
©
My Company
<?php
echo
date
(
'Y'
);
?>
</p>
<p>
©
My Company
<?php
echo
date
(
'Y'
);
?>
</p>
<p
class=
"pull-right"
>
<?php
echo
Yii
::
powered
();
?>
</p>
<p>
<?php
echo
Yii
::
powered
();
?>
Template by
<a
href=
"http://twitter.github.io/bootstrap/"
>
Twitter Bootstrap
</a>
</p>
</div>
</div>
</footer>
<?php
$this
->
endBody
();
?>
<?php
$this
->
endBody
();
?>
</div>
</div>
</body>
</body>
...
...
apps/advanced/backend/views/site/index.php
View file @
edb77393
...
@@ -2,46 +2,52 @@
...
@@ -2,46 +2,52 @@
/**
/**
* @var yii\base\View $this
* @var yii\base\View $this
*/
*/
$this
->
title
=
'
Welcome
'
;
$this
->
title
=
'
My Yii Application
'
;
?>
?>
<div
class=
"jumbotron"
>
<div
class=
"site-index"
>
<h1>
Welcome!
</h1>
<p
class=
"lead"
>
Cras justo odio, dapibus ac facilisis in, egestas eget quam. Fusce dapibus, tellus ac cursus
<div
class=
"jumbotron"
>
commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.
</p>
<h1>
Congratulations!
</h1>
<a
class=
"btn btn-large btn-success"
href=
"http://www.yiiframework.com"
>
Get started with Yii
</a>
</div>
<p
class=
"lead"
>
You have successfully created your Yii-powered application.
</p>
<p><a
class=
"btn btn-large btn-success"
href=
"http://www.yiiframework.com"
>
Get started with Yii
</a></p>
</div>
<hr
>
<div
class=
"body-content"
>
<!-- Example row of columns -->
<div
class=
"row"
>
<div
class=
"row-fluid"
>
<div
class=
"col-lg-4"
>
<div
class=
"span4"
>
<h2>
Heading
</h2>
<h2>
Heading
</h2>
<p>
Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et
condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod.
dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip
Donec sed odio dui.
</p>
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>
<p><a
class=
"btn btn-default"
href=
"http://www.yiiframework.com/doc/"
>
Yii Documentation
»
</a></p>
</div>
</div>
<div
class=
"span
4"
>
<div
class=
"col-lg-
4"
>
<h2>
Heading
</h2>
<h2>
Heading
</h2>
<p>
Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et
condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod.
dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip
Donec sed odio dui.
</p>
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>
<p><a
class=
"btn btn-default"
href=
"http://www.yiiframework.com/forum/"
>
Yii Forum
»
</a></p>
</div>
</div>
<div
class=
"span
4"
>
<div
class=
"col-lg-
4"
>
<h2>
Heading
</h2>
<h2>
Heading
</h2>
<p>
Donec sed odio dui. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Vestibulum id ligula porta
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et
felis euismod semper. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum
dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip
massa.
</p>
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>
<p><a
class=
"btn btn-default"
href=
"http://www.yiiframework.com/extensions/"
>
Yii Extensions
»
</a></p>
</div>
</div>
</div>
</div>
</div>
</div>
apps/advanced/backend/views/site/login.php
View file @
edb77393
...
@@ -10,15 +10,21 @@ use yii\widgets\ActiveForm;
...
@@ -10,15 +10,21 @@ use yii\widgets\ActiveForm;
$this
->
title
=
'Login'
;
$this
->
title
=
'Login'
;
$this
->
params
[
'breadcrumbs'
][]
=
$this
->
title
;
$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'
)));
?>
<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
,
'username'
)
->
textInput
();
?>
<?php
echo
$form
->
field
(
$model
,
'password'
)
->
passwordInput
();
?>
<?php
echo
$form
->
field
(
$model
,
'password'
)
->
passwordInput
();
?>
<?php
echo
$form
->
field
(
$model
,
'rememberMe'
)
->
checkbox
();
?>
<?php
echo
$form
->
field
(
$model
,
'rememberMe'
)
->
checkbox
();
?>
<div
class=
"form-actions"
>
<div
class=
"form-actions"
>
<?php
echo
Html
::
submitButton
(
'Login'
,
array
(
'class'
=>
'btn btn-primary'
));
?>
<?php
echo
Html
::
submitButton
(
'Login'
,
array
(
'class'
=>
'btn btn-primary'
));
?>
</div>
</div>
<?php
ActiveForm
::
end
();
?>
<?php
ActiveForm
::
end
();
?>
</div>
</div>
</div>
\ No newline at end of file
apps/advanced/backend/web/css/site.css
View file @
edb77393
body
{
body
{
padding-top
:
20px
;
padding-top
:
70px
;
padding-bottom
:
60px
;
}
}
/* Custom container */
.footer
{
.container
{
border-top
:
1px
solid
#ddd
;
margin
:
0
auto
;
margin-top
:
30px
;
max-width
:
1000px
;
padding-top
:
15px
;
padding-bottom
:
30px
;
}
}
.container
>
hr
{
margin
:
60px
0
;
}
/* Main marketing message and sign up button */
.jumbotron
{
.jumbotron
{
margin
:
80px
0
;
text-align
:
center
;
text-align
:
center
;
background-color
:
transparent
;
}
}
.jumbotron
h1
{
font-size
:
100px
;
line-height
:
1
;
}
.jumbotron
.lead
{
font-size
:
24px
;
line-height
:
1.25
;
}
.jumbotron
.btn
{
.jumbotron
.btn
{
font-size
:
21px
;
font-size
:
21px
;
padding
:
14px
24px
;
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
;
}
apps/advanced/frontend/config/AppAsset.php
View file @
edb77393
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
*/
*/
namespace
frontend\config
;
namespace
frontend\config
;
use
yii\web\AssetBundle
;
use
yii\web\AssetBundle
;
/**
/**
...
...
apps/advanced/frontend/views/layouts/main.php
View file @
edb77393
<?php
<?php
use
frontend\config\AppAsset
;
use
frontend\config\AppAsset
;
use
yii\helpers\Html
;
use
yii\helpers\Html
;
use
yii\widgets\Menu
;
use
yii\bootstrap\Nav
;
use
yii\bootstrap\NavBar
;
use
yii\widgets\Breadcrumbs
;
use
yii\widgets\Breadcrumbs
;
use
frontend\widgets\Alert
;
use
frontend\widgets\Alert
;
...
@@ -20,15 +21,15 @@ AppAsset::register($this);
...
@@ -20,15 +21,15 @@ AppAsset::register($this);
<?php
$this
->
head
();
?>
<?php
$this
->
head
();
?>
</head>
</head>
<body>
<body>
<div
class=
"container"
>
<?php
$this
->
beginBody
();
?>
<?php
$this
->
beginBody
();
?>
<div
class=
"masthead"
>
<h3
class=
"muted"
>
My Company
</h3>
<div
class=
"navbar fullwidth"
>
<div
class=
"navbar-inner"
>
<div
class=
"container"
>
<?php
<?php
NavBar
::
begin
(
array
(
'brandLabel'
=>
'My Company'
,
'brandUrl'
=>
Yii
::
$app
->
homeUrl
,
'options'
=>
array
(
'class'
=>
'navbar-inverse navbar-fixed-top'
,
),
));
$menuItems
=
array
(
$menuItems
=
array
(
array
(
'label'
=>
'Home'
,
'url'
=>
array
(
'/site/index'
)),
array
(
'label'
=>
'Home'
,
'url'
=>
array
(
'/site/index'
)),
array
(
'label'
=>
'About'
,
'url'
=>
array
(
'/site/about'
)),
array
(
'label'
=>
'About'
,
'url'
=>
array
(
'/site/about'
)),
...
@@ -41,36 +42,29 @@ AppAsset::register($this);
...
@@ -41,36 +42,29 @@ AppAsset::register($this);
else
{
else
{
$menuItems
[]
=
array
(
'label'
=>
'Logout ('
.
Yii
::
$app
->
user
->
identity
->
username
.
')'
,
'url'
=>
array
(
'/site/logout'
));
$menuItems
[]
=
array
(
'label'
=>
'Logout ('
.
Yii
::
$app
->
user
->
identity
->
username
.
')'
,
'url'
=>
array
(
'/site/logout'
));
}
}
echo
Menu
::
widget
(
array
(
echo
Nav
::
widget
(
array
(
'options'
=>
array
(
'class'
=>
'nav
'
),
'options'
=>
array
(
'class'
=>
'navbar-nav pull-right
'
),
'items'
=>
$menuItems
,
'items'
=>
$menuItems
,
));
));
NavBar
::
end
();
?>
?>
</div>
</div>
</div>
<!-- /.navbar -->
</div>
<div
class=
"container"
>
<?php
echo
Breadcrumbs
::
widget
(
array
(
<?php
echo
Breadcrumbs
::
widget
(
array
(
'links'
=>
isset
(
$this
->
params
[
'breadcrumbs'
])
?
$this
->
params
[
'breadcrumbs'
]
:
array
(),
'links'
=>
isset
(
$this
->
params
[
'breadcrumbs'
])
?
$this
->
params
[
'breadcrumbs'
]
:
array
(),
));
?>
));
?>
<?php
echo
Alert
::
widget
()
?>
<?php
echo
Alert
::
widget
()
?>
<?php
echo
$content
;
?>
<?php
echo
$content
;
?>
</div>
<hr>
<footer
class=
"footer"
>
<div
class=
"container"
>
<div
class=
"footer"
>
<p
class=
"pull-left"
>
©
My Company
<?php
echo
date
(
'Y'
);
?>
</p>
<p>
©
My Company
<?php
echo
date
(
'Y'
);
?>
</p>
<p
class=
"pull-right"
>
<?php
echo
Yii
::
powered
();
?>
</p>
<p>
<?php
echo
Yii
::
powered
();
?>
Template by
<a
href=
"http://twitter.github.io/bootstrap/"
>
Twitter Bootstrap
</a>
</p>
</div>
</div>
</footer>
<?php
$this
->
endBody
();
?>
<?php
$this
->
endBody
();
?>
</div>
</body>
</body>
</html>
</html>
<?php
$this
->
endPage
();
?>
<?php
$this
->
endPage
();
?>
apps/advanced/frontend/views/site/about.php
View file @
edb77393
<?php
<?php
use
yii\helpers\Html
;
use
yii\helpers\Html
;
/**
/**
* @var yii\base\View $this
* @var yii\base\View $this
*/
*/
$this
->
title
=
'About'
;
$this
->
title
=
'About'
;
$this
->
params
[
'breadcrumbs'
][]
=
$this
->
title
;
$this
->
params
[
'breadcrumbs'
][]
=
$this
->
title
;
?>
?>
<h1>
<?php
echo
Html
::
encode
(
$this
->
title
);
?>
</h1>
<div
class=
"site-about"
>
<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>
<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;
...
@@ -11,24 +11,29 @@ use yii\captcha\Captcha;
$this
->
title
=
'Contact'
;
$this
->
title
=
'Contact'
;
$this
->
params
[
'breadcrumbs'
][]
=
$this
->
title
;
$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>
<p>
If you have business inquiries or other questions, please fill out the following form to contact us. Thank you.
If you have business inquiries or other questions, please fill out the following form to contact us. Thank you.
</p>
</p>
<?php
$form
=
ActiveForm
::
begin
(
array
(
<div
class=
"row"
>
'options'
=>
array
(
'class'
=>
'form-horizontal'
),
<div
class=
"col-lg-5"
>
'fieldConfig'
=>
array
(
'inputOptions'
=>
array
(
'class'
=>
'input-xlarge'
)),
<?php
$form
=
ActiveForm
::
begin
(
array
(
'id'
=>
'contact-form'
));
?>
));
?>
<?php
echo
$form
->
field
(
$model
,
'name'
)
->
textInput
();
?>
<?php
echo
$form
->
field
(
$model
,
'name'
)
->
textInput
();
?>
<?php
echo
$form
->
field
(
$model
,
'email'
)
->
textInput
();
?>
<?php
echo
$form
->
field
(
$model
,
'email'
)
->
textInput
();
?>
<?php
echo
$form
->
field
(
$model
,
'subject'
)
->
textInput
();
?>
<?php
echo
$form
->
field
(
$model
,
'subject'
)
->
textInput
();
?>
<?php
echo
$form
->
field
(
$model
,
'body'
)
->
textArea
(
array
(
'rows'
=>
6
));
?>
<?php
echo
$form
->
field
(
$model
,
'body'
)
->
textArea
(
array
(
'rows'
=>
6
));
?>
<?php
echo
$form
->
field
(
$model
,
'verifyCode'
)
->
widget
(
Captcha
::
className
(),
array
(
<?php
echo
$form
->
field
(
$model
,
'verifyCode'
)
->
widget
(
Captcha
::
className
(),
array
(
'options'
=>
array
(
'class'
=>
'input-medium'
),
'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"
>
<div
class=
"form-actions"
>
<?php
echo
Html
::
submitButton
(
'Submit'
,
array
(
'class'
=>
'btn btn-primary'
));
?>
<?php
echo
Html
::
submitButton
(
'Submit'
,
array
(
'class'
=>
'btn btn-primary'
));
?>
</div>
</div>
<?php
ActiveForm
::
end
();
?>
<?php
ActiveForm
::
end
();
?>
</div>
</div>
</div>
apps/advanced/frontend/views/site/index.php
View file @
edb77393
...
@@ -2,46 +2,52 @@
...
@@ -2,46 +2,52 @@
/**
/**
* @var yii\base\View $this
* @var yii\base\View $this
*/
*/
$this
->
title
=
'
Welcome
'
;
$this
->
title
=
'
My Yii Application
'
;
?>
?>
<div
class=
"jumbotron"
>
<div
class=
"site-index"
>
<h1>
Welcome!
</h1>
<p
class=
"lead"
>
Cras justo odio, dapibus ac facilisis in, egestas eget quam. Fusce dapibus, tellus ac cursus
<div
class=
"jumbotron"
>
commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.
</p>
<h1>
Congratulations!
</h1>
<a
class=
"btn btn-large btn-success"
href=
"http://www.yiiframework.com"
>
Get started with Yii
</a>
</div>
<p
class=
"lead"
>
You have successfully created your Yii-powered application.
</p>
<p><a
class=
"btn btn-large btn-success"
href=
"http://www.yiiframework.com"
>
Get started with Yii
</a></p>
</div>
<hr
>
<div
class=
"body-content"
>
<!-- Example row of columns -->
<div
class=
"row"
>
<div
class=
"row-fluid"
>
<div
class=
"col-lg-4"
>
<div
class=
"span4"
>
<h2>
Heading
</h2>
<h2>
Heading
</h2>
<p>
Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et
condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod.
dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip
Donec sed odio dui.
</p>
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>
<p><a
class=
"btn btn-default"
href=
"http://www.yiiframework.com/doc/"
>
Yii Documentation
»
</a></p>
</div>
</div>
<div
class=
"span
4"
>
<div
class=
"col-lg-
4"
>
<h2>
Heading
</h2>
<h2>
Heading
</h2>
<p>
Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et
condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod.
dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip
Donec sed odio dui.
</p>
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>
<p><a
class=
"btn btn-default"
href=
"http://www.yiiframework.com/forum/"
>
Yii Forum
»
</a></p>
</div>
</div>
<div
class=
"span
4"
>
<div
class=
"col-lg-
4"
>
<h2>
Heading
</h2>
<h2>
Heading
</h2>
<p>
Donec sed odio dui. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Vestibulum id ligula porta
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et
felis euismod semper. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum
dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip
massa.
</p>
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>
<p><a
class=
"btn btn-default"
href=
"http://www.yiiframework.com/extensions/"
>
Yii Extensions
»
</a></p>
</div>
</div>
</div>
</div>
</div>
</div>
apps/advanced/frontend/views/site/login.php
View file @
edb77393
...
@@ -10,17 +10,24 @@ use yii\widgets\ActiveForm;
...
@@ -10,17 +10,24 @@ use yii\widgets\ActiveForm;
$this
->
title
=
'Login'
;
$this
->
title
=
'Login'
;
$this
->
params
[
'breadcrumbs'
][]
=
$this
->
title
;
$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'
)));
?>
<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
,
'username'
)
->
textInput
();
?>
<?php
echo
$form
->
field
(
$model
,
'password'
)
->
passwordInput
();
?>
<?php
echo
$form
->
field
(
$model
,
'password'
)
->
passwordInput
();
?>
<?php
echo
$form
->
field
(
$model
,
'rememberMe'
)
->
checkbox
();
?>
<?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"
>
<div
class=
"form-actions"
>
<?php
echo
Html
::
submitButton
(
'Login'
,
array
(
'class'
=>
'btn btn-primary'
));
?>
<?php
echo
Html
::
submitButton
(
'Login'
,
array
(
'class'
=>
'btn btn-primary'
));
?>
</div>
</div>
<?php
ActiveForm
::
end
();
?>
<?php
ActiveForm
::
end
();
?>
</div>
<p>
If you forgot your password you can
<?php
echo
Html
::
a
(
'reset it'
,
array
(
'site/request-password-reset'
))
?>
.
</p>
</div>
\ 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;
...
@@ -10,13 +10,19 @@ use yii\widgets\ActiveForm;
$this
->
title
=
'Request password reset'
;
$this
->
title
=
'Request password reset'
;
$this
->
params
[
'breadcrumbs'
][]
=
$this
->
title
;
$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'
)));
?>
<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
();
?>
<?php
echo
$form
->
field
(
$model
,
'email'
)
->
textInput
();
?>
<div
class=
"form-actions"
>
<div
class=
"form-actions"
>
<?php
echo
Html
::
submitButton
(
'Send'
,
array
(
'class'
=>
'btn btn-primary'
));
?>
<?php
echo
Html
::
submitButton
(
'Send'
,
array
(
'class'
=>
'btn btn-primary'
));
?>
</div>
</div>
<?php
ActiveForm
::
end
();
?>
<?php
ActiveForm
::
end
();
?>
</div>
</div>
</div>
apps/advanced/frontend/views/site/resetPassword.php
View file @
edb77393
...
@@ -10,13 +10,19 @@ use yii\widgets\ActiveForm;
...
@@ -10,13 +10,19 @@ use yii\widgets\ActiveForm;
$this
->
title
=
'Reset password'
;
$this
->
title
=
'Reset password'
;
$this
->
params
[
'breadcrumbs'
][]
=
$this
->
title
;
$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'
)));
?>
<div
class=
"row"
>
<div
class=
"col-lg-5"
>
<?php
$form
=
ActiveForm
::
begin
(
array
(
'id'
=>
'reset-password-form'
));
?>
<?php
echo
$form
->
field
(
$model
,
'password'
)
->
passwordInput
();
?>
<?php
echo
$form
->
field
(
$model
,
'password'
)
->
passwordInput
();
?>
<div
class=
"form-actions"
>
<div
class=
"form-actions"
>
<?php
echo
Html
::
submitButton
(
'Save'
,
array
(
'class'
=>
'btn btn-primary'
));
?>
<?php
echo
Html
::
submitButton
(
'Save'
,
array
(
'class'
=>
'btn btn-primary'
));
?>
</div>
</div>
<?php
ActiveForm
::
end
();
?>
<?php
ActiveForm
::
end
();
?>
</div>
</div>
</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;
...
@@ -10,15 +10,21 @@ use yii\widgets\ActiveForm;
$this
->
title
=
'Signup'
;
$this
->
title
=
'Signup'
;
$this
->
params
[
'breadcrumbs'
][]
=
$this
->
title
;
$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'
)));
?>
<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
,
'username'
)
->
textInput
();
?>
<?php
echo
$form
->
field
(
$model
,
'email'
)
->
textInput
();
?>
<?php
echo
$form
->
field
(
$model
,
'email'
)
->
textInput
();
?>
<?php
echo
$form
->
field
(
$model
,
'password'
)
->
passwordInput
();
?>
<?php
echo
$form
->
field
(
$model
,
'password'
)
->
passwordInput
();
?>
<div
class=
"form-actions"
>
<div
class=
"form-actions"
>
<?php
echo
Html
::
submitButton
(
'Signup'
,
array
(
'class'
=>
'btn btn-primary'
));
?>
<?php
echo
Html
::
submitButton
(
'Signup'
,
array
(
'class'
=>
'btn btn-primary'
));
?>
</div>
</div>
<?php
ActiveForm
::
end
();
?>
<?php
ActiveForm
::
end
();
?>
</div>
</div>
</div>
apps/advanced/frontend/web/css/site.css
View file @
edb77393
body
{
body
{
padding-top
:
20px
;
padding-top
:
70px
;
padding-bottom
:
60px
;
}
}
/* Custom container */
.footer
{
.container
{
border-top
:
1px
solid
#ddd
;
margin
:
0
auto
;
margin-top
:
30px
;
max-width
:
1000px
;
padding-top
:
15px
;
padding-bottom
:
30px
;
}
}
.container
>
hr
{
margin
:
60px
0
;
}
/* Main marketing message and sign up button */
.jumbotron
{
.jumbotron
{
margin
:
80px
0
;
text-align
:
center
;
text-align
:
center
;
background-color
:
transparent
;
}
}
.jumbotron
h1
{
font-size
:
100px
;
line-height
:
1
;
}
.jumbotron
.lead
{
font-size
:
24px
;
line-height
:
1.25
;
}
.jumbotron
.btn
{
.jumbotron
.btn
{
font-size
:
21px
;
font-size
:
21px
;
padding
:
14px
24px
;
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
;
}
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