From da89a296c133158973c6f2c437acf1c50b61cb5b Mon Sep 17 00:00:00 2001 From: phuongtc Date: Wed, 29 Apr 2026 08:59:47 +0000 Subject: [PATCH] fix: RoleTemplateForm layout - full width sections instead of cramped 2-column grid --- .../Schemas/RoleTemplateForm.php | 34 +++++++++---------- 1 file changed, 16 insertions(+), 18 deletions(-) diff --git a/app/Filament/Resources/RoleTemplates/Schemas/RoleTemplateForm.php b/app/Filament/Resources/RoleTemplates/Schemas/RoleTemplateForm.php index 1970c04..33f41f4 100644 --- a/app/Filament/Resources/RoleTemplates/Schemas/RoleTemplateForm.php +++ b/app/Filament/Resources/RoleTemplates/Schemas/RoleTemplateForm.php @@ -36,31 +36,29 @@ class RoleTemplateForm $permissionComponents[] = CheckboxList::make("permissions.{$module->module}") ->label($module->label) ->options($options) - ->columns(4) + ->columns(6) ->columnSpanFull(); } return $schema ->components([ - Grid::make(2) + Section::make('Thông tin nhóm') + ->columnSpanFull() + ->columns(3) ->schema([ - Section::make('Thông tin nhóm') - ->columnSpan(1) - ->schema([ - TextInput::make('name') - ->label('Tên nhóm') - ->required(), - TextInput::make('description') - ->label('Mô tả'), - Toggle::make('is_active') - ->label('Kích hoạt') - ->default(true), - ]), - - Section::make('Phân quyền theo module') - ->columnSpan(1) - ->schema($permissionComponents), + TextInput::make('name') + ->label('Tên nhóm') + ->required(), + TextInput::make('description') + ->label('Mô tả'), + Toggle::make('is_active') + ->label('Kích hoạt') + ->default(true), ]), + + Section::make('Phân quyền theo module') + ->columnSpanFull() + ->schema($permissionComponents), ]); } }