forked from pelican-dev/plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCreateTicket.php
More file actions
36 lines (29 loc) · 1.02 KB
/
CreateTicket.php
File metadata and controls
36 lines (29 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
namespace Boy132\Tickets\Filament\Server\Resources\Tickets\Pages;
use Boy132\Tickets\Filament\Server\Resources\Tickets\TicketResource;
use Filament\Resources\Pages\CreateRecord;
use Filament\Actions\Action;
class CreateTicket extends CreateRecord
{
protected static string $resource = TicketResource::class;
protected static bool $canCreateAnother = false;
public function getBreadcrumbs(): array
{
return [];
}
protected function getFormActions(): array
{
return [
Action::make('create')
->label(__('filament-panels::resources/pages/create-record.form.actions.create.label'))
->submit('create')
->color('primary')
->button(),
Action::make('cancel')
->label(__('filament-panels::resources/pages/create-record.form.actions.cancel.label'))
->url($this->getResource()::getUrl())
->color('gray')
->button(),
];
}
}