-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #32 from PortableStudios/feature/FILACMS-30
Fix Lint
- Loading branch information
Showing
9 changed files
with
123 additions
and
14 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
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
32 changes: 32 additions & 0 deletions
32
src/Filament/Resources/RoleResource/RelationManagers/UsersRelationManager.php
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,32 @@ | ||
<?php | ||
|
||
namespace Portable\FilaCms\Filament\Resources\RoleResource\RelationManagers; | ||
|
||
use Filament\Forms\Form; | ||
use Filament\Resources\RelationManagers\RelationManager; | ||
use Filament\Tables\Columns\ViewColumn; | ||
use Filament\Tables\Table; | ||
|
||
class UsersRelationManager extends RelationManager | ||
{ | ||
protected static string $relationship = 'users'; | ||
|
||
public function form(Form $form): Form | ||
{ | ||
return $form | ||
->schema([]); | ||
} | ||
|
||
public function table(Table $table): Table | ||
{ | ||
return $table | ||
->recordTitleAttribute('Users') | ||
->columns([ | ||
ViewColumn::make('name') | ||
->view('fila-cms::tables.columns.roles-user'), | ||
ViewColumn::make('created_at') | ||
->label('Creation Date') | ||
->view('fila-cms::tables.columns.created_at'), | ||
]); | ||
} | ||
} |
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,9 @@ | ||
<div class="fi-ta-text grid w-full gap-y-1 px-3 py-4"> | ||
<div class="flex"> | ||
<div class="fi-ta-text-item inline-flex items-center gap-1.5 "> | ||
<span class="fi-ta-text-item-label text-sm leading-6 text-gray-950 dark:text-white"> | ||
{{ $getRecord()->created_at }} | ||
</span> | ||
</div> | ||
</div> | ||
</div> |
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,9 @@ | ||
<div class="fi-ta-text grid w-full gap-y-1 px-3 py-4"> | ||
<div class="flex"> | ||
<div class="fi-ta-text-item inline-flex items-center gap-1.5 "> | ||
<span class="fi-ta-text-item-label text-sm leading-6 text-gray-950 dark:text-white"> | ||
{{ $getRecord()->name ?? $getRecord()->first_name }} | ||
</span> | ||
</div> | ||
</div> | ||
</div> |