forked from filamentphp/tables
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
899 additions
and
473 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,4 +17,4 @@ | |
'results' => 'resultats.', | ||
], | ||
|
||
]; | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,4 +54,4 @@ | |
'placeholder' => 'Cerca', | ||
], | ||
|
||
]; | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
@if ($action = $recordAction->getAction($record)) | ||
<button | ||
wire:click="{{ $action }}('{{ $record->getKey() }}')" | ||
{!! $recordAction->getTitle() ? 'title="' . __($recordAction->getTitle()) . '"' : null !!} | ||
type="button" | ||
class="font-medium transition-colors duration-200 text-primary-600 hover:text-primary-700" | ||
> | ||
<x-dynamic-component :component="$recordAction->getIcon()" class="w-4 h-4 inline" /> | ||
</button> | ||
@elseif ($url = $recordAction->getUrl($record)) | ||
<a | ||
href="{{ $url }}" | ||
{!! $recordAction->getTitle() ? 'title="' . __($recordAction->getTitle()) . '"' : null !!} | ||
@if ($recordAction->shouldOpenUrlInNewTab()) | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
@endif | ||
class="font-medium transition-colors duration-200 text-primary-600 hover:text-primary-700" | ||
> | ||
<x-dynamic-component :component="$recordAction->getIcon()" class="w-4 h-4 inline" /> | ||
</a> | ||
@else | ||
<span | ||
class="inline-flex items-center font-medium text-primary-600" | ||
> | ||
<x-dynamic-component :component="$recordAction->getIcon()" class="w-4 h-4 inline" /> | ||
</span> | ||
@endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,40 @@ | ||
@if ($recordAction->action) | ||
@if ($action = $recordAction->getAction($record)) | ||
<button | ||
wire:click="{{ $recordAction->action }}('{{ $record->getKey() }}')" | ||
wire:click="{{ $action }}('{{ $record->getKey() }}')" | ||
{!! $recordAction->getTitle() ? 'title="' . __($recordAction->getTitle()) . '"' : null !!} | ||
type="button" | ||
class="font-medium transition-colors duration-200 text-primary-600 hover:underline hover:text-primary-700" | ||
class="inline-flex items-center font-medium transition-colors duration-200 text-primary-600 hover:underline hover:text-primary-700" | ||
> | ||
{{ __($recordAction->label) }} | ||
@if ($recordAction->hasIcon()) | ||
<x-dynamic-component :component="$recordAction->getIcon()" class="w-4 h-4 mr-1 inline" /> | ||
@endif | ||
|
||
{{ __($recordAction->getLabel()) }} | ||
</button> | ||
@elseif ($recordAction->url) | ||
@elseif ($url = $recordAction->getUrl($record)) | ||
<a | ||
href="{{ $recordAction->getUrl($record) }}" | ||
class="font-medium transition-colors duration-200 text-primary-600 hover:underline hover:text-primary-700" | ||
@if ($recordAction->shouldOpenUrlInNewTab) | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
href="{{ $url }}" | ||
{!! $recordAction->getTitle() ? 'title="' . __($recordAction->getTitle()) . '"' : null !!} | ||
@if ($recordAction->shouldOpenUrlInNewTab()) | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
@endif | ||
class="inline-flex items-center font-medium transition-colors duration-200 text-primary-600 hover:underline hover:text-primary-700" | ||
> | ||
{{ __($recordAction->label) }} | ||
@if ($recordAction->hasIcon()) | ||
<x-dynamic-component :component="$recordAction->getIcon()" class="w-4 h-4 mr-1 inline" /> | ||
@endif | ||
|
||
{{ __($recordAction->getLabel()) }} | ||
</a> | ||
@else | ||
<span>{{ __($recordAction->label) }}</span> | ||
<span | ||
class="inline-flex items-center font-medium text-primary-600" | ||
> | ||
@if ($recordAction->hasIcon()) | ||
<x-dynamic-component :component="$recordAction->getIcon()" class="w-4 h-4 mr-1 inline" /> | ||
@endif | ||
|
||
{{ __($recordAction->getLabel()) }} | ||
</span> | ||
@endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.