Merge pull request #90 from creative-commoners/pulls/4.0/filter-button-class

FIX Add primary button class to 'Filter' button
This commit is contained in:
Daniel Hensby 2017-11-07 15:59:47 +00:00 committed by GitHub
commit ece79fd2b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -292,8 +292,8 @@ class Report extends ViewableData
} }
// Add a search button // Add a search button
$formAction = new FormAction('updatereport', _t('SilverStripe\\Forms\\GridField\\GridField.Filter', 'Filter')); $formAction = FormAction::create('updatereport', _t('SilverStripe\\Forms\\GridField\\GridField.Filter', 'Filter'));
$formAction->addExtraClass("mb-4"); $formAction->addExtraClass('btn-primary mb-4');
$fields->push($formAction); $fields->push($formAction);
} }