mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #5070 from vinstah/model-admin-buttons
GridField export and print buttons updated to new style
This commit is contained in:
commit
7df1d790d6
@ -57,6 +57,8 @@ class GridFieldExportButton implements GridField_HTMLProvider, GridField_ActionP
|
||||
);
|
||||
$button->setAttribute('data-icon', 'download-csv');
|
||||
$button->addExtraClass('no-ajax');
|
||||
$button->addExtraClass('font-icon-down-circled');
|
||||
|
||||
return array(
|
||||
$this->targetFragment => '<p class="grid-csv-button">' . $button->Field() . '</p>',
|
||||
);
|
||||
|
@ -55,6 +55,7 @@ class GridFieldPrintButton implements GridField_HTMLProvider, GridField_ActionPr
|
||||
|
||||
$button->setAttribute('data-icon', 'grid_print');
|
||||
$button->addExtraClass('gridfield-button-print');
|
||||
$button->addExtraClass('font-icon-print');
|
||||
|
||||
return array(
|
||||
$this->targetFragment => '<p class="grid-print-button">' . $button->Field() . '</p>',
|
||||
|
Loading…
Reference in New Issue
Block a user