mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
Remove additional title and move actions to top
This commit is contained in:
parent
9fdf236611
commit
f04975c64e
@ -312,12 +312,14 @@ class SS_Report extends ViewableData
|
|||||||
$items = $this->sourceRecords($params, null, null);
|
$items = $this->sourceRecords($params, null, null);
|
||||||
|
|
||||||
$gridFieldConfig = GridFieldConfig::create()->addComponents(
|
$gridFieldConfig = GridFieldConfig::create()->addComponents(
|
||||||
|
|
||||||
|
new GridFieldButtonRow('before'),
|
||||||
|
new GridFieldPrintButton('buttons-before-left'),
|
||||||
|
new GridFieldExportButton('buttons-before-left'),
|
||||||
|
new GridFieldToolbarHeader(),
|
||||||
new GridFieldSortableHeader(),
|
new GridFieldSortableHeader(),
|
||||||
new GridFieldDataColumns(),
|
new GridFieldDataColumns(),
|
||||||
new GridFieldPaginator(),
|
new GridFieldPaginator()
|
||||||
new GridFieldButtonRow('after'),
|
|
||||||
new GridFieldPrintButton('buttons-after-left'),
|
|
||||||
new GridFieldExportButton('buttons-after-left')
|
|
||||||
);
|
);
|
||||||
$gridField = new GridField('Report',null, $items, $gridFieldConfig);
|
$gridField = new GridField('Report',null, $items, $gridFieldConfig);
|
||||||
$columns = $gridField->getConfig()->getComponentByType('GridFieldDataColumns');
|
$columns = $gridField->getConfig()->getComponentByType('GridFieldDataColumns');
|
||||||
@ -343,7 +345,7 @@ class SS_Report extends ViewableData
|
|||||||
|
|
||||||
if(isset($info['link']) && $info['link']) {
|
if(isset($info['link']) && $info['link']) {
|
||||||
$link = singleton('CMSPageEditController')->Link('show');
|
$link = singleton('CMSPageEditController')->Link('show');
|
||||||
$fieldFormatting[$source] = '<a href=\"' . $link . '/$ID\">$value</a>';
|
$fieldFormatting[$source] = '<a class=\"grid-field__link-block\" href=\"' . $link . '/$ID\">$value</a>';
|
||||||
}
|
}
|
||||||
|
|
||||||
$displayFields[$source] = isset($info['title']) ? $info['title'] : $source;
|
$displayFields[$source] = isset($info['title']) ? $info['title'] : $source;
|
||||||
|
Loading…
Reference in New Issue
Block a user