mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Wrap content gridfield cell in another non-td element for styling
This commit is contained in:
parent
e07658ef50
commit
1a324d9d77
@ -82,7 +82,7 @@ class GridFieldVersionedState implements GridField_ColumnProvider
|
|||||||
$data = array('text' => $data);
|
$data = array('text' => $data);
|
||||||
}
|
}
|
||||||
$flagContent .= sprintf(
|
$flagContent .= sprintf(
|
||||||
"<span class=\"ss-gridfield-badge badge %s\"%s>%s</span>",
|
" <span class=\"ss-gridfield-badge badge %s\"%s>%s</span>",
|
||||||
'status-' . Convert::raw2xml($class),
|
'status-' . Convert::raw2xml($class),
|
||||||
(isset($data['title'])) ? sprintf(' title="%s"', Convert::raw2xml($data['title'])) : '',
|
(isset($data['title'])) ? sprintf(' title="%s"', Convert::raw2xml($data['title'])) : '',
|
||||||
Convert::raw2xml($data['text'])
|
Convert::raw2xml($data['text'])
|
||||||
@ -101,7 +101,7 @@ class GridFieldVersionedState implements GridField_ColumnProvider
|
|||||||
*/
|
*/
|
||||||
public function getColumnAttributes($gridField, $record, $columnName)
|
public function getColumnAttributes($gridField, $record, $columnName)
|
||||||
{
|
{
|
||||||
return [ 'data-contains-version-state' => true ];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user