Skip to content

Commit

Permalink
Add observations after users table
Browse files Browse the repository at this point in the history
  • Loading branch information
alexPopaCode4 committed Jan 13, 2025
1 parent 1bf4c20 commit f0eaa52
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
3 changes: 0 additions & 3 deletions app/Filament/Organizations/Resources/UserResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,6 @@ public static function table(Table $table): Table
->sortable()
->label(__('user.labels.last_login_at')),
])
->filters([
//
])
->actions([
Tables\Actions\ViewAction::make()
->label(__('general.action.view_details')),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
use App\Filament\Organizations\Resources\UserResource;
use Filament\Actions;
use Filament\Resources\Pages\ListRecords;
use Filament\Support\Facades\FilamentView;
use Filament\View\PanelsRenderHook;
use Illuminate\Contracts\View\View;
use Illuminate\Support\HtmlString;

class ListUsers extends ListRecords
{
Expand All @@ -24,4 +28,14 @@ public function getBreadcrumbs(): array
{
return [];
}

public function render(): View
{
FilamentView::registerRenderHook(
PanelsRenderHook::RESOURCE_PAGES_LIST_RECORDS_TABLE_AFTER,
fn () => new HtmlString(\sprintf('<span class="px-2 text-sm">%s</span>', __('user.placeholders.table_observations'))),
);

return parent::render();
}
}
1 change: 1 addition & 0 deletions lang/ro/user.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
'user_role_without_permissions_for_all_cases' => 'Acest tip de utilizator <span class="italic">are acces doar la cazurile din echipa cărora face parte</span> și nu deține drepturi de administrare ale sistemului. Puteți oferi permisiuni suplimentare din lista de mai jos.',
'user_role_with_permissions_for_all_cases' => 'Acest tip de rol are acces <span class="italic">la toate cazurile din cadrul Centrului</span>, însă nu deține drepturi de administrare ale sistemului. Puteți oferi permisiuni suplimentare din lista de mai jos.',
'dashboard_cart' => 'Distribuția pe luni a numărului total de utilizatori activi Sunrise. Un utilizator este considerat activ dacă a avut cel puțin o accesare a platformei în luna calendaristică respectivă.',
'table_observations' => '** Utilizator de tip administrator sistem.',
],

'actions' => [
Expand Down

0 comments on commit f0eaa52

Please sign in to comment.