feat(Password process for new admin, cleaning translations)
All checks were successful
Deploy Roxane to Preprod / deploy (push) Successful in 1m21s
All checks were successful
Deploy Roxane to Preprod / deploy (push) Successful in 1m21s
This commit is contained in:
@@ -22,6 +22,16 @@ class ServiceResource extends Resource
|
||||
|
||||
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedPuzzlePiece;
|
||||
|
||||
public static function getModelLabel(): string
|
||||
{
|
||||
return Service::getAttributeLabel('service');
|
||||
}
|
||||
|
||||
public static function getPluralModelLabel(): string
|
||||
{
|
||||
return Service::getAttributeLabel('services');
|
||||
}
|
||||
|
||||
public static function form(Schema $schema): Schema
|
||||
{
|
||||
return ServiceForm::configure($schema);
|
||||
|
||||
@@ -6,7 +6,6 @@ use App\Models\Service;
|
||||
use Filament\Actions\BulkActionGroup;
|
||||
use Filament\Actions\DeleteBulkAction;
|
||||
use Filament\Actions\EditAction;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Filament\Tables\Columns\IconColumn;
|
||||
use Filament\Tables\Columns\TextColumn;
|
||||
use Filament\Tables\Table;
|
||||
@@ -24,8 +23,8 @@ class ServicesTable
|
||||
->label(Service::getAttributeLabel('identifier'))
|
||||
->searchable(),
|
||||
IconColumn::make('icon')
|
||||
->label('Icône')
|
||||
->icon(fn (Service $record) => 'heroicon-o-' . $record->icon),
|
||||
->label(Service::getAttributeLabel('icon'))
|
||||
->icon(fn (Service $record) => 'heroicon-o-'.$record->icon),
|
||||
TextColumn::make('created_at')
|
||||
->dateTime()
|
||||
->sortable()
|
||||
|
||||
Reference in New Issue
Block a user