Each field's original sits beside the field to write, and a translation that fell behind shows what the original said when it was translated and what it says now, word by word. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
32 lines
820 B
PHP
32 lines
820 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Filament\Resources\Calls\Pages;
|
|
|
|
use App\Filament\Concerns\WarnsOfConcurrentEditing;
|
|
use App\Filament\Resources\Calls\CallResource;
|
|
use App\Filament\Support\DuplicateAction;
|
|
use App\Filament\Support\PreviewAction;
|
|
use App\Filament\Support\TranslateAction;
|
|
use Filament\Actions\DeleteAction;
|
|
use Filament\Resources\Pages\EditRecord;
|
|
|
|
class EditCall extends EditRecord
|
|
{
|
|
use WarnsOfConcurrentEditing;
|
|
|
|
protected static string $resource = CallResource::class;
|
|
|
|
protected function getHeaderActions(): array
|
|
{
|
|
return [
|
|
// Seeing it on the real site without leaving the form.
|
|
PreviewAction::for('call'),
|
|
DuplicateAction::make(),
|
|
TranslateAction::make(),
|
|
DeleteAction::make(),
|
|
];
|
|
}
|
|
}
|