fix: RoleTemplateForm layout - full width sections instead of cramped 2-column grid
This commit is contained in:
@@ -36,31 +36,29 @@ 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)
|
Section::make('Thông tin nhóm')
|
||||||
|
->columnSpanFull()
|
||||||
|
->columns(3)
|
||||||
->schema([
|
->schema([
|
||||||
Section::make('Thông tin nhóm')
|
TextInput::make('name')
|
||||||
->columnSpan(1)
|
->label('Tên nhóm')
|
||||||
->schema([
|
->required(),
|
||||||
TextInput::make('name')
|
TextInput::make('description')
|
||||||
->label('Tên nhóm')
|
->label('Mô tả'),
|
||||||
->required(),
|
Toggle::make('is_active')
|
||||||
TextInput::make('description')
|
->label('Kích hoạt')
|
||||||
->label('Mô tả'),
|
->default(true),
|
||||||
Toggle::make('is_active')
|
|
||||||
->label('Kích hoạt')
|
|
||||||
->default(true),
|
|
||||||
]),
|
|
||||||
|
|
||||||
Section::make('Phân quyền theo module')
|
|
||||||
->columnSpan(1)
|
|
||||||
->schema($permissionComponents),
|
|
||||||
]),
|
]),
|
||||||
|
|
||||||
|
Section::make('Phân quyền theo module')
|
||||||
|
->columnSpanFull()
|
||||||
|
->schema($permissionComponents),
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user