feat(pdf): preview in Filament modal (iframe) instead of new tab

All "Vizualizare PDF" actions now open a wide (7xl) Filament modal
containing an iframe pointing at the inline PDF endpoint, with a
top-right "Descarcă" and "Deschide în tab nou" fallback.

- WorkOrder edit action + WO table row action
- InjectorProtocol edit action + protocols table row action
- Dashboard Docs tab preview button (Alpine.js overlay since it's
  a plain Blade view, not a Filament action)

The underlying /pdf routes stay unchanged (Content-Disposition: inline,
?download=1 for attachment) — the iframe just loads the same URL.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-08-06 05:47:07 +00:00
parent e289fbc068
commit c9d400fd6e
8 changed files with 68 additions and 11 deletions
+2
View File
@@ -670,6 +670,7 @@
"Deschide fișă nouă": "Open new order",
"Deschide panoul pe telefon și acceptă notificările întâi.": "Open the panel on the phone and accept notifications first.",
"Deschide tenantul": "Deschide tenantul",
"Deschide în tab nou": "Open in new tab",
"Deschide →": "Open →",
"Deschidere ÎNAINTE": "Opening BEFORE",
"Deschis": "Opened",
@@ -1623,6 +1624,7 @@
"Progres": "Progress",
"Progres etapă": "Stage progress",
"Proprietar": "Owner",
"Protocol": "Protocol",
"Protocol nou": "New protocol",
"Provider implicit": "Default provider",
"Provider:": "Provider:",
+2
View File
@@ -670,6 +670,7 @@
"Deschide fișă nouă": "Открыть новый наряд",
"Deschide panoul pe telefon și acceptă notificările întâi.": "Сначала откройте панель на телефоне и разрешите уведомления.",
"Deschide tenantul": "Deschide tenantul",
"Deschide în tab nou": "Открыть в новой вкладке",
"Deschide →": "Открыть →",
"Deschidere ÎNAINTE": "Открытие ДО",
"Deschis": "Открыт",
@@ -1623,6 +1624,7 @@
"Progres": "Прогресс",
"Progres etapă": "Прогресс этапа",
"Proprietar": "Владелец",
"Protocol": "Протокол",
"Protocol nou": "Новый протокол",
"Provider implicit": "Провайдер по умолчанию",
"Provider:": "Provider:",