mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #4041 from adrexia/patch-3
BUG: export and print buttons outside button row
This commit is contained in:
commit
385c2a75d3
@ -137,7 +137,7 @@ abstract class ModelAdmin extends LeftAndMain {
|
||||
|
||||
public function getEditForm($id = null, $fields = null) {
|
||||
$list = $this->getList();
|
||||
$exportButton = new GridFieldExportButton('before');
|
||||
$exportButton = new GridFieldExportButton('buttons-before-left');
|
||||
$exportButton->setExportColumns($this->getExportFields());
|
||||
$listField = GridField::create(
|
||||
$this->sanitiseClassName($this->modelClass),
|
||||
@ -146,7 +146,7 @@ abstract class ModelAdmin extends LeftAndMain {
|
||||
$fieldConfig = GridFieldConfig_RecordEditor::create($this->stat('page_length'))
|
||||
->addComponent($exportButton)
|
||||
->removeComponentsByType('GridFieldFilterHeader')
|
||||
->addComponents(new GridFieldPrintButton('before'))
|
||||
->addComponents(new GridFieldPrintButton('buttons-before-left'))
|
||||
);
|
||||
|
||||
// Validation
|
||||
|
Loading…
Reference in New Issue
Block a user