Permalink
Browse files

ENHANCEMENT SSF-53 : add customised icon class for relational 'Find' …

…button and 'Link Existing' button
  • Loading branch information...
1 parent 3ef957b commit d26e68c41a242701cebbe5f28311afe498162d4e @normann normann committed Mar 5, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 forms/gridfield/GridFieldRelationAdd.php
@@ -66,7 +66,9 @@ public function getHTMLFragments($gridField) {
$searchField->addExtraClass('relation-search');
$findAction = new GridField_Action($gridField, 'gridfield_relationfind', _t('GridField.Find', "Find"), 'find', 'find');
+ $findAction->setButtonIcon('relationfind');
$addAction = new GridField_Action($gridField, 'gridfield_relationadd', _t('GridField.LinkExisting', "Link Exisiting"), 'addto', 'addto');
+ $addAction->setButtonIcon('add');
// If an object is not found, disable the action
if(!is_int($gridField->State->GridFieldAddRelation)) {

0 comments on commit d26e68c

Please sign in to comment.