mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
ENHANCEMENT:Trac#7218 - changed delete button on gridfield to cross and added tooltips for both edit and delete.
This commit is contained in:
parent
9a7980e357
commit
fb78cab8e6
@ -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))
|
$field = GridField_FormAction::create($gridField, 'DeleteRecord'.$record->ID, false, "deleterecord", array('RecordID' => $record->ID))
|
||||||
->addExtraClass('gridfield-button-delete')
|
->addExtraClass('gridfield-button-delete')
|
||||||
->setAttribute('title', _t('GridAction.Delete', "Delete"))
|
->setAttribute('title', _t('GridAction.Delete', "Delete"))
|
||||||
->setAttribute('data-icon', 'decline');
|
->setAttribute('data-icon', 'cross-circle')
|
||||||
|
->setDescription('Delete');
|
||||||
}
|
}
|
||||||
return $field->Field();
|
return $field->Field();
|
||||||
}
|
}
|
||||||
|
@ -1 +1 @@
|
|||||||
<a class="action action-detail edit-link" href="$Link">edit</a>
|
<a class="action action-detail edit-link" href="$Link" title="Edit">edit</a>
|
Loading…
x
Reference in New Issue
Block a user