class PeticaoInicialFormPage extends Page
{
protected static ?string $navigationIcon = 'heroicon-o-document-text';
protected static string $view = 'filament.pages.peticao-inicial-form-page';
protected static ?string $navigationLabel = 'Criar Petição Inicial';
protected static ?string $title = 'Petição Inicial';
public function form(Form $form): Form
{
return $form
->schema([
Repeater::make('index')
->label('')
->collapsible()
->addActionLabel('Adicionar Tema')
->schema([
TextInput::make('Nome')
]),
]);
}
protected function getHeaderActions(): array
{
return [
Action::make('Gerar')
->requiresConfirmation(),
];
}
}
class PeticaoInicialFormPage extends Page
{
protected static ?string $navigationIcon = 'heroicon-o-document-text';
protected static string $view = 'filament.pages.peticao-inicial-form-page';
protected static ?string $navigationLabel = 'Criar Petição Inicial';
protected static ?string $title = 'Petição Inicial';
public function form(Form $form): Form
{
return $form
->schema([
Repeater::make('index')
->label('')
->collapsible()
->addActionLabel('Adicionar Tema')
->schema([
TextInput::make('Nome')
]),
]);
}
protected function getHeaderActions(): array
{
return [
Action::make('Gerar')
->requiresConfirmation(),
];
}
}