mirror of
https://github.com/symbiote/silverstripe-gridfieldextensions.git
synced 2024-10-22 15:05:39 +00:00
FIX Switch Add Existing from jQuery UI to use Bootstrap styles
This commit is contained in:
parent
692b9df70c
commit
8ba5c3435e
@ -91,14 +91,15 @@ class GridFieldAddExistingSearchButton implements GridField_HTMLProvider, GridFi
|
|||||||
{
|
{
|
||||||
GridFieldExtensions::include_requirements();
|
GridFieldExtensions::include_requirements();
|
||||||
|
|
||||||
$data = new ArrayData(array(
|
$data = ArrayData::create([
|
||||||
'Title' => $this->getTitle(),
|
'Title' => $this->getTitle(),
|
||||||
'Link' => $grid->Link('add-existing-search')
|
'Classes' => 'action btn btn-primary font-icon-search add-existing-search',
|
||||||
));
|
'Link' => $grid->Link('add-existing-search'),
|
||||||
|
]);
|
||||||
|
|
||||||
return array(
|
return [
|
||||||
$this->fragment => $data->renderWith('Symbiote\\GridFieldExtensions\\GridFieldAddExistingSearchButton'),
|
$this->fragment => $data->renderWith(__CLASS__),
|
||||||
);
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getURLHandlers($grid)
|
public function getURLHandlers($grid)
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
<a href="$Link" class="action ss-ui-button ui-button add-existing-search" data-icon="magnifier">
|
<a href="$Link" class="$Classes">
|
||||||
$Title
|
<span class="btn__title">$Title</span>
|
||||||
</a>
|
</a>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user