fix: calendar — register createForm via getForms() + remove broken FullCalendar CSS link
- Filament v5 multi-form pages need protected getForms() returning form names - FullCalendar v6 bundles CSS in JS — separate <link> 404'd silently - Added Russian locale alongside Romanian for i18n switcher
This commit is contained in:
@@ -34,6 +34,12 @@ class CalendarBoard extends Page
|
||||
|
||||
public ?int $editId = null;
|
||||
|
||||
/** Register all forms used by this page (Filament v5 multi-form pattern). */
|
||||
protected function getForms(): array
|
||||
{
|
||||
return ['createForm'];
|
||||
}
|
||||
|
||||
public function getEvents(string $start, string $end): array
|
||||
{
|
||||
return Appointment::with(['client:id,name', 'vehicle:id,plate,make,model', 'master:id,name,color', 'post:id,name,color'])
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
<x-filament-panels::page>
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/fullcalendar@6.1.15/main.min.css">
|
||||
{{-- FullCalendar v6 ships CSS bundled in JS — no separate stylesheet needed --}}
|
||||
<script src="https://cdn.jsdelivr.net/npm/fullcalendar@6.1.15/index.global.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/fullcalendar@6.1.15/locales/ro.global.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/fullcalendar@6.1.15/locales/ru.global.min.js"></script>
|
||||
|
||||
<style>
|
||||
.cal-wrap {
|
||||
|
||||
Reference in New Issue
Block a user