Skip to content

Commit

Permalink
Merge pull request #454 from code4romania/staff-placeholder
Browse files Browse the repository at this point in the history
Staff placeholder
  • Loading branch information
gheorghelupu17 authored Dec 27, 2024
2 parents 4341cad + 71437e9 commit 2a9f454
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/Filament/Organizations/Resources/UserResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ public static function getSchema(): array

Placeholder::make('obs')
->hiddenLabel()
->visible(fn (Get $get) => $get('role_id'))
->content(function (Get $get) {
foreach ($get('role_id') as $roleID) {
$role = self::getRole($roleID);
Expand All @@ -188,6 +189,7 @@ public static function getSchema(): array

Group::make()
->relationship('permissions')
->columnSpanFull()
->schema([
CheckboxList::make('case_permissions')
->label(__('user.labels.case_permissions'))
Expand Down

0 comments on commit 2a9f454

Please sign in to comment.