Skip to content

Commit

Permalink
Revert "Change template key to be selectable list"
Browse files Browse the repository at this point in the history
This reverts commit 3ddbaa6.
  • Loading branch information
cannycookie committed Sep 22, 2024
1 parent c96bc2d commit 9254df2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Resources/EmailTemplateResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 9254df2

Please sign in to comment.