Refactored form design, validation and Added items - description, category, uom in resource files
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 18s

This commit is contained in:
dhanabalan
2026-10-08 09:59:45 +05:30
parent 867c97288f
commit 110b8b2e92
4 changed files with 91 additions and 19 deletions

View File

@@ -141,7 +141,8 @@ class WindedSerialValidationErrorResource extends Resource
->reactive()
->afterStateUpdated(function ($state, callable $set) {
$set('updated_by', Filament::auth()->user()?->name);
}),
})
->readOnly(fn (Get $get) => $get('id')),
Forms\Components\TextInput::make('aufnr')
->label('AUFNR')
->placeholder('Scan the AUFNR')
@@ -150,7 +151,8 @@ class WindedSerialValidationErrorResource extends Resource
->reactive()
->afterStateUpdated(function ($state, callable $set) {
$set('updated_by', Filament::auth()->user()?->name);
}),
})
->readOnly(fn (Get $get) => $get('id')),
Forms\Components\TextInput::make('gernr')
->label('GERNR')
->placeholder('Scan the GERNR')
@@ -159,7 +161,8 @@ class WindedSerialValidationErrorResource extends Resource
->reactive()
->afterStateUpdated(function ($state, callable $set) {
$set('updated_by', Filament::auth()->user()?->name);
}),
})
->readOnly(fn (Get $get) => $get('id')),
Forms\Components\TextInput::make('model_type')
->label('Model Type')
->placeholder('Scan the Model Type')
@@ -168,7 +171,8 @@ class WindedSerialValidationErrorResource extends Resource
->reactive()
->afterStateUpdated(function ($state, callable $set) {
$set('updated_by', Filament::auth()->user()?->name);
}),
})
->readOnly(fn (Get $get) => $get('id')),
Forms\Components\TextInput::make('winded_qr')
->label('Winded QR')
->placeholder('Scan the Winded QR')
@@ -176,7 +180,8 @@ class WindedSerialValidationErrorResource extends Resource
->reactive()
->afterStateUpdated(function ($state, callable $set) {
$set('updated_by', Filament::auth()->user()?->name);
}),
})
->readOnly(fn (Get $get) => $get('id')),
Forms\Components\TextInput::make('winded_code')
->label('Winded Code')
->placeholder('Scan the Winded Code')
@@ -184,7 +189,8 @@ class WindedSerialValidationErrorResource extends Resource
->reactive()
->afterStateUpdated(function ($state, callable $set) {
$set('updated_by', Filament::auth()->user()?->name);
}),
})
->readOnly(fn (Get $get) => $get('id')),
Forms\Components\TextInput::make('winded_serial_number')
->label('Winded Serial Number')
->placeholder('Scan the Winded Serial Number')
@@ -192,7 +198,8 @@ class WindedSerialValidationErrorResource extends Resource
->reactive()
->afterStateUpdated(function ($state, callable $set) {
$set('updated_by', Filament::auth()->user()?->name);
}),
})
->readOnly(fn (Get $get) => $get('id')),
Forms\Components\TextInput::make('winded_status')
->label('Winded Status')
->placeholder('Scan the Winded Status')
@@ -201,7 +208,8 @@ class WindedSerialValidationErrorResource extends Resource
->reactive()
->afterStateUpdated(function ($state, callable $set) {
$set('updated_by', Filament::auth()->user()?->name);
}),
})
->readOnly(fn (Get $get) => $get('id')),
Forms\Components\TextInput::make('created_by')
->default(fn () => Filament::auth()->user()?->name)
->readOnly()