Skip to content

Commit

Permalink
FIX Switch Add Existing from jQuery UI to use Bootstrap styles
Browse files Browse the repository at this point in the history
  • Loading branch information
robbieaverill committed Jan 25, 2018
1 parent 692b9df commit 8ba5c34
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
13 changes: 7 additions & 6 deletions src/GridFieldAddExistingSearchButton.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,15 @@ public function getHTMLFragments($grid)
{
GridFieldExtensions::include_requirements();

$data = new ArrayData(array(
$data = ArrayData::create([
'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(
$this->fragment => $data->renderWith('Symbiote\\GridFieldExtensions\\GridFieldAddExistingSearchButton'),
);
return [
$this->fragment => $data->renderWith(__CLASS__),
];
}

public function getURLHandlers($grid)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<a href="$Link" class="action ss-ui-button ui-button add-existing-search" data-icon="magnifier">
$Title
</a>
<a href="$Link" class="$Classes">
<span class="btn__title">$Title</span>
</a>

0 comments on commit 8ba5c34

Please sign in to comment.