From fb78cab8e66ec4ff90a1d5f52421887d45319add Mon Sep 17 00:00:00 2001 From: Jeremy Bridson Date: Wed, 2 May 2012 14:56:10 +1200 Subject: [PATCH] ENHANCEMENT:Trac#7218 - changed delete button on gridfield to cross and added tooltips for both edit and delete. --- forms/gridfield/GridFieldDeleteAction.php | 3 ++- templates/Includes/GridFieldEditButton.ss | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/forms/gridfield/GridFieldDeleteAction.php b/forms/gridfield/GridFieldDeleteAction.php index 62e32f007..488c57d25 100644 --- a/forms/gridfield/GridFieldDeleteAction.php +++ b/forms/gridfield/GridFieldDeleteAction.php @@ -109,7 +109,8 @@ class GridFieldDeleteAction implements GridField_ColumnProvider, GridField_Actio $field = GridField_FormAction::create($gridField, 'DeleteRecord'.$record->ID, false, "deleterecord", array('RecordID' => $record->ID)) ->addExtraClass('gridfield-button-delete') ->setAttribute('title', _t('GridAction.Delete', "Delete")) - ->setAttribute('data-icon', 'decline'); + ->setAttribute('data-icon', 'cross-circle') + ->setDescription('Delete'); } return $field->Field(); } diff --git a/templates/Includes/GridFieldEditButton.ss b/templates/Includes/GridFieldEditButton.ss index 6db6c52a1..bfcc265b0 100644 --- a/templates/Includes/GridFieldEditButton.ss +++ b/templates/Includes/GridFieldEditButton.ss @@ -1 +1 @@ -edit \ No newline at end of file +edit \ No newline at end of file