mirror of
https://github.com/anna-sara/vbytes_lan.git
synced 2025-12-24 13:27:12 +01:00
32 lines
933 B
PHP
32 lines
933 B
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\Mailtemplates\Schemas;
|
|
|
|
use Filament\Forms\Components\TextInput;
|
|
use Filament\Forms\Components\Textarea;
|
|
use Filament\Forms\Components\RichEditor;
|
|
use Filament\Schemas\Schema;
|
|
use Filament\Forms\Components\MarkdownEditor;
|
|
use DiscoveryDesign\FilamentGaze\Forms\Components\GazeBanner;
|
|
|
|
class MailtemplateForm
|
|
{
|
|
public static function configure(Schema $schema): Schema
|
|
{
|
|
return $schema
|
|
->components([
|
|
GazeBanner::make()
|
|
->pollTimer(10)
|
|
->hideOnCreate(),
|
|
TextInput::make('title')
|
|
->required()
|
|
->columnSpanFull(),
|
|
TextInput::make('type')
|
|
->required()
|
|
->columnSpanFull(),
|
|
MarkdownEditor::make('content')
|
|
->required()
|
|
->columnSpanFull(),
|
|
]);
|
|
}
|
|
}
|