Added content field to Sms template form

This commit is contained in:
Anna-Sara Sélea 2026-05-21 20:44:25 +02:00
parent 0b1a3ae96f
commit 7d23f3972b

View file

@ -5,7 +5,7 @@ namespace App\Filament\Resources\Smstemplates\Schemas;
use Filament\Forms\Components\TextInput; use Filament\Forms\Components\TextInput;
use Filament\Forms\Components\Toggle; use Filament\Forms\Components\Toggle;
use Filament\Schemas\Schema; use Filament\Schemas\Schema;
use Filament\Forms\Components\MarkdownEditor; use Filament\Forms\Components\Textarea;
use DiscoveryDesign\FilamentGaze\Forms\Components\GazeBanner; use DiscoveryDesign\FilamentGaze\Forms\Components\GazeBanner;
class SmstemplatesForm class SmstemplatesForm
@ -20,6 +20,10 @@ class SmstemplatesForm
TextInput::make('title') TextInput::make('title')
->required() ->required()
->columnSpanFull(), ->columnSpanFull(),
Textarea::make('content')
->required()
->rows(5)
->columnSpanFull(),
Toggle::make('draft') Toggle::make('draft')
->default(false) ->default(false)
->onColor('warning') ->onColor('warning')