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
d63613b6
Commit
d63613b6
authored
Apr 29, 2014
by
Qiang Xue
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3285 from mikehaertl/master
Fix bootstrap templates
parents
1ed02180
9d384668
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
ActiveField.php
extensions/bootstrap/ActiveField.php
+9
-0
No files found.
extensions/bootstrap/ActiveField.php
View file @
d63613b6
...
@@ -173,6 +173,9 @@ class ActiveField extends \yii\widgets\ActiveField
...
@@ -173,6 +173,9 @@ class ActiveField extends \yii\widgets\ActiveField
}
else
{
}
else
{
$this
->
template
=
"<div class=
\"
checkbox
\"
>
\n
{
beginLabel}\n{input}\n{labelTitle}\n{endLabel}\n{error}\n{hint
}
\n
</div>"
;
$this
->
template
=
"<div class=
\"
checkbox
\"
>
\n
{
beginLabel}\n{input}\n{labelTitle}\n{endLabel}\n{error}\n{hint
}
\n
</div>"
;
}
}
}
else
{
$this
->
template
=
$options
[
'template'
];
unset
(
$options
[
'template'
]);
}
}
$this
->
labelOptions
[
'class'
]
=
null
;
$this
->
labelOptions
[
'class'
]
=
null
;
}
}
...
@@ -189,6 +192,9 @@ class ActiveField extends \yii\widgets\ActiveField
...
@@ -189,6 +192,9 @@ class ActiveField extends \yii\widgets\ActiveField
if
(
$this
->
inline
)
{
if
(
$this
->
inline
)
{
if
(
!
isset
(
$options
[
'template'
]))
{
if
(
!
isset
(
$options
[
'template'
]))
{
$this
->
template
=
"
{
label}\n{beginWrapper}\n{input}\n{error}\n{endWrapper}\n{hint
}
"
;
$this
->
template
=
"
{
label}\n{beginWrapper}\n{input}\n{error}\n{endWrapper}\n{hint
}
"
;
}
else
{
$this
->
template
=
$options
[
'template'
];
unset
(
$options
[
'template'
]);
}
}
if
(
!
isset
(
$options
[
'itemOptions'
]))
{
if
(
!
isset
(
$options
[
'itemOptions'
]))
{
$options
[
'itemOptions'
]
=
[
$options
[
'itemOptions'
]
=
[
...
@@ -209,6 +215,9 @@ class ActiveField extends \yii\widgets\ActiveField
...
@@ -209,6 +215,9 @@ class ActiveField extends \yii\widgets\ActiveField
if
(
$this
->
inline
)
{
if
(
$this
->
inline
)
{
if
(
!
isset
(
$options
[
'template'
]))
{
if
(
!
isset
(
$options
[
'template'
]))
{
$this
->
template
=
"
{
label}\n{beginWrapper}\n{input}\n{error}\n{endWrapper}\n{hint
}
"
;
$this
->
template
=
"
{
label}\n{beginWrapper}\n{input}\n{error}\n{endWrapper}\n{hint
}
"
;
}
else
{
$this
->
template
=
$options
[
'template'
];
unset
(
$options
[
'template'
]);
}
}
if
(
!
isset
(
$options
[
'itemOptions'
]))
{
if
(
!
isset
(
$options
[
'itemOptions'
]))
{
$options
[
'itemOptions'
]
=
[
$options
[
'itemOptions'
]
=
[
...
...
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