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
7ae4695d
Commit
7ae4695d
authored
Jan 29, 2014
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #1856: The default CSS class for hint generated by `ActiveField` is changed to `help-block`
parent
f5e1fbc5
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
3 additions
and
20 deletions
+3
-20
site.css
apps/advanced/backend/web/css/site.css
+0
-6
site.css
apps/advanced/frontend/web/css/site.css
+0
-6
site.css
apps/basic/web/css/site.css
+0
-6
form.md
docs/guide/form.md
+1
-1
CHANGELOG.md
framework/CHANGELOG.md
+1
-0
ActiveField.php
framework/widgets/ActiveField.php
+1
-1
No files found.
apps/advanced/backend/web/css/site.css
View file @
7ae4695d
...
...
@@ -76,12 +76,6 @@ a.desc:after {
white-space
:
nowrap
;
}
.hint-block
{
display
:
block
;
margin-top
:
5px
;
color
:
#999
;
}
.error-summary
{
color
:
#a94442
;
background
:
#fdf7f7
;
...
...
apps/advanced/frontend/web/css/site.css
View file @
7ae4695d
...
...
@@ -76,12 +76,6 @@ a.desc:after {
white-space
:
nowrap
;
}
.hint-block
{
display
:
block
;
margin-top
:
5px
;
color
:
#999
;
}
.error-summary
{
color
:
#a94442
;
background
:
#fdf7f7
;
...
...
apps/basic/web/css/site.css
View file @
7ae4695d
...
...
@@ -76,12 +76,6 @@ a.desc:after {
white-space
:
nowrap
;
}
.hint-block
{
display
:
block
;
margin-top
:
5px
;
color
:
#999
;
}
.error-summary
{
color
:
#a94442
;
background
:
#fdf7f7
;
...
...
docs/guide/form.md
View file @
7ae4695d
...
...
@@ -107,8 +107,8 @@ or
<?=
Html
::
activeLabel
(
$model
,
'username'
,
[
'label'
=>
'name'
])
?>
<?=
Html
::
activeTextInput
(
$model
,
'username'
)
?>
<?=
Html
::
error
(
$model
,
'username'
)
?>
<div
class=
"hint-block"
>
Please enter your name
</div>
<?=
Html
::
error
(
$model
,
'username'
)
?>
```
If you want to use one of HTML5 fields you may specify input type directly like the following:
...
...
framework/CHANGELOG.md
View file @
7ae4695d
...
...
@@ -121,6 +121,7 @@ Yii Framework 2 Change Log
-
Chg #1821: Changed default values for yii
\d
b
\C
onnection username and password to null (cebe)
-
Chg #1844:
`Response::sendFile()`
and other file sending methods will not send the response (qiangxue)
-
Chg #1852: DbConnection::tablePrefix default value now 'tbl_' (creocoder)
-
Chg #1856: The default CSS class for hint generated by
`ActiveField`
is changed to
`help-block`
(qiangxue, crocoder)
-
Chg #1958:
`beforeSubmit`
in
`yii.activeform`
is now executed after validation and before form submission (6pblcb)
-
Chg #2025: Removed ability to declare scopes in ActiveRecord (samdark)
-
Chg #2043:
...
...
framework/widgets/ActiveField.php
View file @
7ae4695d
...
...
@@ -70,7 +70,7 @@ class ActiveField extends Component
*
* - tag: the tag name of the container element. Defaults to "div".
*/
public
$hintOptions
=
[
'class'
=>
'h
int
-block'
];
public
$hintOptions
=
[
'class'
=>
'h
elp
-block'
];
/**
* @var boolean whether to enable client-side data validation.
* If not set, it will take the value of [[ActiveForm::enableClientValidation]].
...
...
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