Added module list file name
This commit is contained in:
@@ -28,24 +28,33 @@ class ModuleListResource extends Resource
|
||||
return $form
|
||||
->schema([
|
||||
Section::make('')
|
||||
->schema([
|
||||
Forms\Components\TextInput::make('module_name')
|
||||
->label('Module Name')
|
||||
->required(),
|
||||
Forms\Components\TextInput::make('dashboard_name')
|
||||
->label('DashBoard Name')
|
||||
->required(),
|
||||
Forms\Components\TextInput::make('filter_name')
|
||||
->label('Filter Name')
|
||||
->required(),
|
||||
Forms\Components\Hidden::make('created_by')
|
||||
->label('Created By')
|
||||
->default(Filament::auth()->user()?->name),
|
||||
Forms\Components\Hidden::make('updated_by')
|
||||
->label('Updated By')
|
||||
->default(Filament::auth()->user()?->name),
|
||||
])
|
||||
->columns(3),
|
||||
->schema([
|
||||
Forms\Components\TextInput::make('module_name')
|
||||
->label('Module Name')
|
||||
->required(),
|
||||
Forms\Components\TextInput::make('dashboard_name')
|
||||
->label('DashBoard Name')
|
||||
->required(),
|
||||
Forms\Components\TextInput::make('filter_name')
|
||||
->label('Filter Name')
|
||||
->required(),
|
||||
Forms\Components\TextInput::make('file_name')
|
||||
->label('File Name')
|
||||
->required()
|
||||
->reactive()
|
||||
->extraAttributes([
|
||||
'x-data' => '{ value: "" }',
|
||||
'x-model' => 'value',
|
||||
'x-on:keydown.enter.prevent' => '$wire.process(value)',
|
||||
]),
|
||||
Forms\Components\Hidden::make('created_by')
|
||||
->label('Created By')
|
||||
->default(Filament::auth()->user()?->name),
|
||||
Forms\Components\Hidden::make('updated_by')
|
||||
->label('Updated By')
|
||||
->default(Filament::auth()->user()?->name),
|
||||
])
|
||||
->columns(4),
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user