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
234a56f9
Commit
234a56f9
authored
May 25, 2014
by
TTouka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[#1] replaced glyphicons in TbButtonColumn
parent
56a2bff5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
3 deletions
+18
-3
yii.css
assets/css/yii.css
+1
-1
TbButtonColumn.php
widgets/TbButtonColumn.php
+2
-2
TbDataColumn.php
widgets/TbDataColumn.php
+15
-0
No files found.
assets/css/yii.css
View file @
234a56f9
...
...
@@ -23,7 +23,7 @@
}
.grid-view
.button-column
{
text-align
:
center
;
width
:
50
px
;
width
:
67
px
;
}
.grid-view
.checkbox-column
{
width
:
15px
;
}
.grid-view
.summary
{
...
...
widgets/TbButtonColumn.php
View file @
234a56f9
...
...
@@ -68,8 +68,8 @@ class TbButtonColumn extends CButtonColumn
if
(
isset
(
$button
[
'icon'
]))
{
if
(
strpos
(
$button
[
'icon'
],
'icon'
)
===
false
)
$button
[
'icon'
]
=
'
icon-'
.
implode
(
'
icon-'
,
explode
(
' '
,
$button
[
'icon'
]));
if
(
strpos
(
$button
[
'icon'
],
'
glyph
icon'
)
===
false
)
$button
[
'icon'
]
=
'
glyphicon glyphicon-'
.
implode
(
' glyph
icon-'
,
explode
(
' '
,
$button
[
'icon'
]));
echo
CHtml
::
link
(
'<i class="'
.
$button
[
'icon'
]
.
'"></i>'
,
$url
,
$options
);
}
...
...
widgets/TbDataColumn.php
View file @
234a56f9
...
...
@@ -53,4 +53,19 @@ class TbDataColumn extends CDataColumn
$this
->
renderFilterCellContent
();
echo
'</div></td>'
;
}
protected
function
renderFilterCellContent
()
{
if
(
is_string
(
$this
->
filter
))
echo
$this
->
filter
;
elseif
(
$this
->
filter
!==
false
&&
$this
->
grid
->
filter
!==
null
&&
$this
->
name
!==
null
&&
strpos
(
$this
->
name
,
'.'
)
===
false
)
{
if
(
is_array
(
$this
->
filter
))
echo
CHtml
::
activeDropDownList
(
$this
->
grid
->
filter
,
$this
->
name
,
$this
->
filter
,
array
(
'id'
=>
false
,
'prompt'
=>
''
));
elseif
(
$this
->
filter
===
null
)
echo
CHtml
::
activeTextField
(
$this
->
grid
->
filter
,
$this
->
name
,
array
(
'id'
=>
false
));
}
else
parent
::
renderFilterCellContent
();
}
}
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