Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
Yii Bootstrap 3
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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Common
Yii Bootstrap 3
Commits
fb8c2544
Commit
fb8c2544
authored
Apr 24, 2012
by
niskac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added support for addons with password fields (fixes #54)
parent
436defd3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
BootInputHorizontal.php
widgets/input/BootInputHorizontal.php
+2
-0
BootInputSearch.php
widgets/input/BootInputSearch.php
+3
-2
BootInputVertical.php
widgets/input/BootInputVertical.php
+2
-0
No files found.
widgets/input/BootInputHorizontal.php
View file @
fb8c2544
...
...
@@ -113,7 +113,9 @@ class BootInputHorizontal extends BootInput
{
echo
$this
->
getLabel
();
echo
'<div class="controls">'
;
echo
$this
->
getPrepend
();
echo
$this
->
form
->
passwordField
(
$this
->
model
,
$this
->
attribute
,
$this
->
htmlOptions
);
echo
$this
->
getAppend
();
echo
$this
->
getError
()
.
$this
->
getHint
();
echo
'</div>'
;
}
...
...
widgets/input/BootInputSearch.php
View file @
fb8c2544
...
...
@@ -21,10 +21,11 @@ class BootInputSearch extends BootInputInline
*/
protected
function
textField
()
{
$classes
=
'search-query'
;
if
(
isset
(
$this
->
htmlOptions
[
'class'
]))
$this
->
htmlOptions
[
'class'
]
.=
'
search-query'
;
$this
->
htmlOptions
[
'class'
]
.=
'
'
.
$classes
;
else
$this
->
htmlOptions
[
'class'
]
=
'search-query'
;
$this
->
htmlOptions
[
'class'
]
=
$classes
;
$this
->
htmlOptions
[
'placeholder'
]
=
$this
->
model
->
getAttributeLabel
(
$this
->
attribute
);
echo
$this
->
form
->
textField
(
$this
->
model
,
$this
->
attribute
,
$this
->
htmlOptions
);
...
...
widgets/input/BootInputVertical.php
View file @
fb8c2544
...
...
@@ -92,7 +92,9 @@ class BootInputVertical extends BootInput
protected
function
passwordField
()
{
echo
$this
->
getLabel
();
echo
$this
->
getPrepend
();
echo
$this
->
form
->
passwordField
(
$this
->
model
,
$this
->
attribute
,
$this
->
htmlOptions
);
echo
$this
->
getAppend
();
echo
$this
->
getError
()
.
$this
->
getHint
();
}
...
...
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