Permalink
Browse files

MINOR SSF-53 : give "Add New" button an 'add' icon class, give "Link …

…Exisiting" button a 'linkexisting' class
  • Loading branch information...
1 parent d26e68c commit 8a56f989ac493ee92fa86d97a4478944d4c5d8a0 @normann normann committed Mar 5, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 forms/gridfield/GridFieldRelationAdd.php
  2. +1 −1 templates/Includes/GridFieldTitle.ss
@@ -68,7 +68,7 @@ public function getHTMLFragments($gridField) {
$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');
+ $addAction->setButtonIcon('linkexisting');
// If an object is not found, disable the action
if(!is_int($gridField->State->GridFieldAddRelation)) {
@@ -1,3 +1,3 @@
<tr class="title">
- <th colspan="$ColumnCount"><h2>$Title</h2> <a href="$NewLink" class="action ss-ui-action-constructive ss-ui-button ui-button ui-widget ui-state-default ui-corner-all new new-link"><% _t('GridField.AddNew', 'Add New') %></a></th>
+ <th colspan="$ColumnCount"><h2>$Title</h2> <a href="$NewLink" class="action ss-ui-action-constructive ss-ui-button ui-button ui-widget ui-state-default ui-corner-all new new-link" data-icon="add"><% _t('GridField.AddNew', 'Add New') %></a></th>
</tr>

0 comments on commit 8a56f98

Please sign in to comment.