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
27658e56
Commit
27658e56
authored
Jan 01, 2014
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #1647: Changed the default CSS class of error block to be `error-block`
parent
978f8ec2
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
141 additions
and
23 deletions
+141
-23
site.css
apps/advanced/backend/web/css/site.css
+40
-7
site.css
apps/advanced/frontend/web/css/site.css
+40
-7
site.css
apps/basic/web/css/site.css
+39
-7
main.css
extensions/yii/gii/assets/main.css
+19
-0
CHANGELOG.md
framework/CHANGELOG.md
+1
-0
ActiveField.php
framework/yii/widgets/ActiveField.php
+2
-2
No files found.
apps/advanced/backend/web/css/site.css
View file @
27658e56
...
...
@@ -13,6 +13,7 @@ body {
text-align
:
center
;
background-color
:
transparent
;
}
.jumbotron
.btn
{
font-size
:
21px
;
padding
:
14px
24px
;
...
...
@@ -35,17 +36,49 @@ a.asc:after, a.desc:after {
padding-left
:
5px
;
}
a
.asc
:after
{
content
:
/*"\e113"*/
"\e151"
;
}
a
.desc
:after
{
content
:
/*"\e114"*/
"\e152"
;
}
a
.asc
:after
{
content
:
/*"\e113"*/
"\e151"
;
}
a
.desc
:after
{
content
:
/*"\e114"*/
"\e152"
;
}
.sort-numerical
a
.asc
:after
{
content
:
"\e153"
;
}
.sort-numerical
a
.desc
:after
{
content
:
"\e154"
;
}
.sort-ordinal
a
.asc
:after
{
content
:
"\e155"
;
}
.sort-ordinal
a
.desc
:after
{
content
:
"\e156"
;
}
.hint-block
{
display
:
block
;
margin-top
:
5px
;
color
:
#999
;
}
.sort-numerical
a
.asc
:after
{
content
:
"\e153"
;
}
.sort-numerical
a
.desc
:after
{
content
:
"\e154"
;
}
.error-block
{
display
:
none
;
margin-top
:
5px
;
margin-bottom
:
10px
;
color
:
#a94442
;
}
.sort-ordinal
a
.asc
:after
{
content
:
"\e155"
;
}
.sort-ordinal
a
.desc
:after
{
content
:
"\e156"
;
}
.has-error
.error-block
{
display
:
block
;
}
.error-summary
{
color
:
#
b94a48
;
color
:
#
a94442
;
background
:
#fdf7f7
;
border-left
:
3px
solid
#eed3d7
;
padding
:
10px
20px
;
...
...
apps/advanced/frontend/web/css/site.css
View file @
27658e56
...
...
@@ -13,6 +13,7 @@ body {
text-align
:
center
;
background-color
:
transparent
;
}
.jumbotron
.btn
{
font-size
:
21px
;
padding
:
14px
24px
;
...
...
@@ -35,17 +36,49 @@ a.asc:after, a.desc:after {
padding-left
:
5px
;
}
a
.asc
:after
{
content
:
/*"\e113"*/
"\e151"
;
}
a
.desc
:after
{
content
:
/*"\e114"*/
"\e152"
;
}
a
.asc
:after
{
content
:
/*"\e113"*/
"\e151"
;
}
a
.desc
:after
{
content
:
/*"\e114"*/
"\e152"
;
}
.sort-numerical
a
.asc
:after
{
content
:
"\e153"
;
}
.sort-numerical
a
.desc
:after
{
content
:
"\e154"
;
}
.sort-ordinal
a
.asc
:after
{
content
:
"\e155"
;
}
.sort-ordinal
a
.desc
:after
{
content
:
"\e156"
;
}
.hint-block
{
display
:
block
;
margin-top
:
5px
;
color
:
#999
;
}
.sort-numerical
a
.asc
:after
{
content
:
"\e153"
;
}
.sort-numerical
a
.desc
:after
{
content
:
"\e154"
;
}
.error-block
{
display
:
none
;
margin-top
:
5px
;
margin-bottom
:
10px
;
color
:
#a94442
;
}
.sort-ordinal
a
.asc
:after
{
content
:
"\e155"
;
}
.sort-ordinal
a
.desc
:after
{
content
:
"\e156"
;
}
.has-error
.error-block
{
display
:
block
;
}
.error-summary
{
color
:
#
b94a48
;
color
:
#
a94442
;
background
:
#fdf7f7
;
border-left
:
3px
solid
#eed3d7
;
padding
:
10px
20px
;
...
...
apps/basic/web/css/site.css
View file @
27658e56
...
...
@@ -36,17 +36,49 @@ a.asc:after, a.desc:after {
padding-left
:
5px
;
}
a
.asc
:after
{
content
:
/*"\e113"*/
"\e151"
;
}
a
.desc
:after
{
content
:
/*"\e114"*/
"\e152"
;
}
a
.asc
:after
{
content
:
/*"\e113"*/
"\e151"
;
}
a
.desc
:after
{
content
:
/*"\e114"*/
"\e152"
;
}
.sort-numerical
a
.asc
:after
{
content
:
"\e153"
;
}
.sort-numerical
a
.desc
:after
{
content
:
"\e154"
;
}
.sort-numerical
a
.asc
:after
{
content
:
"\e153"
;
}
.sort-numerical
a
.desc
:after
{
content
:
"\e154"
;
}
.sort-ordinal
a
.asc
:after
{
content
:
"\e155"
;
}
.sort-ordinal
a
.asc
:after
{
content
:
"\e155"
;
}
.sort-ordinal
a
.desc
:after
{
content
:
"\e156"
;
}
.sort-ordinal
a
.desc
:after
{
content
:
"\e156"
;
}
.hint-block
{
display
:
block
;
margin-top
:
5px
;
color
:
#999
;
}
.error-block
{
display
:
none
;
margin-top
:
5px
;
margin-bottom
:
10px
;
color
:
#a94442
;
}
.has-error
.error-block
{
display
:
block
;
}
.error-summary
{
color
:
#
b94a48
;
color
:
#
a94442
;
background
:
#fdf7f7
;
border-left
:
3px
solid
#eed3d7
;
padding
:
10px
20px
;
...
...
extensions/yii/gii/assets/main.css
View file @
27658e56
...
...
@@ -41,6 +41,25 @@ body {
display
:
none
;
}
.error-block
{
display
:
none
;
margin-top
:
5px
;
margin-bottom
:
10px
;
color
:
#a94442
;
}
.has-error
.error-block
{
display
:
block
;
}
.error-summary
{
color
:
#a94442
;
background
:
#fdf7f7
;
border-left
:
3px
solid
#eed3d7
;
padding
:
10px
20px
;
margin
:
0
0
15px
0
;
}
.default-view
.sticky-value
{
padding
:
6px
12px
;
background
:
lightyellow
;
...
...
framework/CHANGELOG.md
View file @
27658e56
...
...
@@ -54,6 +54,7 @@ Yii Framework 2 Change Log
-
Chg #1586:
`QueryBuilder::buildLikeCondition()`
will now escape special characters and use percentage characters by default (qiangxue)
-
Chg #1610:
`Html::activeCheckboxList()`
and
`Html::activeRadioList()`
will submit an empty string if no checkbox/radio is selected (qiangxue)
-
Chg #1643: Added default value for
`Captcha::options`
(qiangxue)
-
Chg #1647: Changed the default CSS class of error block to be
`error-block`
(qiangxue)
-
Chg: Renamed
`yii\jui\Widget::clientEventsMap`
to
`clientEventMap`
(qiangxue)
-
Chg: Renamed
`ActiveRecord::getPopulatedRelations()`
to
`getRelatedRecords()`
(qiangxue)
-
Chg: Renamed
`attributeName`
and
`className`
to
`targetAttribute`
and
`targetClass`
for
`UniqueValidator`
and
`ExistValidator`
(qiangxue)
...
...
framework/yii/widgets/ActiveField.php
View file @
27658e56
...
...
@@ -44,7 +44,7 @@ class ActiveField extends Component
* @var string the template that is used to arrange the label, the input field, the error message and the hint text.
* The following tokens will be replaced when [[render()]] is called: `{label}`, `{input}`, `{error}` and `{hint}`.
*/
public
$template
=
"
{
label}\n{input}\n{
error}\n{hint
}
"
;
public
$template
=
"
{
label}\n{input}\n{
hint}\n{error
}
"
;
/**
* @var array the default options for the input tags. The parameter passed to individual input methods
* (e.g. [[textInput()]]) will be merged with this property when rendering the input tag.
...
...
@@ -57,7 +57,7 @@ class ActiveField extends Component
*
* - tag: the tag name of the container element. Defaults to "div".
*/
public
$errorOptions
=
[
'class'
=>
'
help
-block'
];
public
$errorOptions
=
[
'class'
=>
'
error
-block'
];
/**
* @var array the default options for the label tags. The parameter passed to [[label()]] will be
* merged with this property when rendering the label tag.
...
...
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