fix: RoleTemplateForm layout - full width sections instead of cramped 2-column grid

This commit is contained in:
2026-04-29 08:59:47 +00:00
parent 1c7d77a050
commit da89a296c1

View File

@@ -36,16 +36,15 @@ class RoleTemplateForm
$permissionComponents[] = CheckboxList::make("permissions.{$module->module}") $permissionComponents[] = CheckboxList::make("permissions.{$module->module}")
->label($module->label) ->label($module->label)
->options($options) ->options($options)
->columns(4) ->columns(6)
->columnSpanFull(); ->columnSpanFull();
} }
return $schema return $schema
->components([ ->components([
Grid::make(2)
->schema([
Section::make('Thông tin nhóm') Section::make('Thông tin nhóm')
->columnSpan(1) ->columnSpanFull()
->columns(3)
->schema([ ->schema([
TextInput::make('name') TextInput::make('name')
->label('Tên nhóm') ->label('Tên nhóm')
@@ -58,9 +57,8 @@ class RoleTemplateForm
]), ]),
Section::make('Phân quyền theo module') Section::make('Phân quyền theo module')
->columnSpan(1) ->columnSpanFull()
->schema($permissionComponents), ->schema($permissionComponents),
]),
]); ]);
} }
} }