ENHANCEMENT: replacing ReportAdmin report listing paginator with a new footer GridField component

This commit is contained in:
Julian Seidenberg 2012-04-12 16:13:24 +12:00
parent 73a466c927
commit 203bfc9e99

View File

@ -192,12 +192,11 @@ class ReportAdmin extends LeftAndMain implements PermissionProvider {
new GridFieldToolbarHeader(),
new GridFieldSortableHeader(),
new GridFieldDataColumns(),
new GridFieldPaginator()
new GridFieldFooter()
);
$gridField = new GridField('Reports','Reports', $this->Reports(), $gridFieldConfig);
$gridField->setDisplayFields(array(
'title' => 'Title',
'description' => 'Description'
));
$gridField->setFieldFormatting(array(
'title' => '<a href=\"$Link\">$value</a>'