MINOR Consolidated AssetAdmin->FilterForm() button styling and labels with CMSMain

This commit is contained in:
Ingo Schommer 2012-02-29 21:06:21 +01:00
parent ebfc1526ad
commit 6860c5dd9f

View File

@ -225,9 +225,11 @@ JS
$fields->push(new TextField('Title'));
$fields->push(new TextField('ClassName','Type'));
$actions = new FieldList();
$actions->push(new FormAction('doFilter', 'Filter'));
$actions->push(new ResetFormAction('doResetFilter', 'Clear Filter'));
$actions = new FieldList(
Object::create('ResetFormAction', 'clear', _t('CMSMain_left.ss.CLEAR', 'Clear'))
->addExtraClass('ss-ui-action-minor'),
FormAction::create('doSearch', _t('CMSMain_left.ss.SEARCH', 'Search'))
);
$form = new Form($this, 'filter', $fields, $actions);
$form->addExtraClass('cms-filter-form');