Initial commit
This commit is contained in:
32
app/Filament/Resources/Promotions/Schemas/PromotionForm.php
Normal file
32
app/Filament/Resources/Promotions/Schemas/PromotionForm.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace App\Filament\Resources\Promotions\Schemas;
|
||||
|
||||
use Filament\Forms\Components\TextInput;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Schemas\Components\Section;
|
||||
|
||||
class PromotionForm
|
||||
{
|
||||
public static function configure(Schema $schema): Schema
|
||||
{
|
||||
return $schema
|
||||
->components([
|
||||
Section::make()
|
||||
->schema([
|
||||
TextInput::make('title')
|
||||
->label('Tytuł')
|
||||
->required()
|
||||
->maxLength(2048),
|
||||
TextInput::make('description')
|
||||
->label('Opis')
|
||||
->maxLength(2048)
|
||||
->default(null),
|
||||
TextInput::make('additional_info')
|
||||
->label('Dodatkowe informacje')
|
||||
->maxLength(2048)
|
||||
->default(null),
|
||||
]),
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user