diff --git a/src/Resources/EmailTemplateResource.php b/src/Resources/EmailTemplateResource.php index 78cbe51..e54c865 100644 --- a/src/Resources/EmailTemplateResource.php +++ b/src/Resources/EmailTemplateResource.php @@ -94,9 +94,10 @@ public static function form(Form $form): Form Grid::make(['default' => 1, 'sm' => 1, 'md' => 2]) ->schema( [ - Select::make('key') - ->options(config('filament-email-templates.template_keys')) - ->searchable() + TextInput::make('key') + ->afterStateUpdated( + fn (Set $set, ?string $state) => $set('key', Str::slug($state)) + ) ->label(__('vb-email-templates::email-templates.form-fields-labels.key')) ->hint(__('vb-email-templates::email-templates.form-fields-labels.key-hint')) ->required()