Merge pull request #5070 from vinstah/model-admin-buttons

GridField export and print buttons updated to new style
This commit is contained in:
Damian Mooyman 2016-02-22 10:49:51 +13:00
commit 7df1d790d6
2 changed files with 4 additions and 1 deletions

View File

@ -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>',
);

View File

@ -55,7 +55,8 @@ 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>',
);