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 GridFieldToolbarHeader(),
new GridFieldSortableHeader(), new GridFieldSortableHeader(),
new GridFieldDataColumns(), new GridFieldDataColumns(),
new GridFieldPaginator() new GridFieldFooter()
); );
$gridField = new GridField('Reports','Reports', $this->Reports(), $gridFieldConfig); $gridField = new GridField('Reports','Reports', $this->Reports(), $gridFieldConfig);
$gridField->setDisplayFields(array( $gridField->setDisplayFields(array(
'title' => 'Title', 'title' => 'Title',
'description' => 'Description'
)); ));
$gridField->setFieldFormatting(array( $gridField->setFieldFormatting(array(
'title' => '<a href=\"$Link\">$value</a>' 'title' => '<a href=\"$Link\">$value</a>'