mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 12:30:49 +08:00
migrate searchbox to mode related
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
<x-filament::page
|
||||
:class="\Illuminate\Support\Arr::toCssClasses([
|
||||
'filament-resources-create-record-page',
|
||||
'filament-resources-' . str_replace('/', '-', $this->getResource()::getSlug()),
|
||||
])"
|
||||
>
|
||||
<x-filament::form wire:submit.prevent="create">
|
||||
<div style="margin-bottom: 40px;white-space: pre-wrap">{!! $desc !!}</div>
|
||||
<hr/>
|
||||
{{ $this->form }}
|
||||
|
||||
<x-filament::form.actions
|
||||
:actions="$this->getCachedFormActions()"
|
||||
:full-width="$this->hasFullWidthFormActions()"
|
||||
/>
|
||||
</x-filament::form>
|
||||
</x-filament::page>
|
||||
@@ -0,0 +1,25 @@
|
||||
<x-filament::page
|
||||
:widget-data="['record' => $record]"
|
||||
:class="\Illuminate\Support\Arr::toCssClasses([
|
||||
'filament-resources-create-record-page',
|
||||
'filament-resources-' . str_replace('/', '-', $this->getResource()::getSlug()),
|
||||
'filament-resources-record-' . $record->getKey(),
|
||||
])"
|
||||
>
|
||||
<x-filament::form wire:submit.prevent="save">
|
||||
<div style="margin-bottom: 40px;white-space: pre-wrap">{!! $desc !!}</div>
|
||||
<hr/>
|
||||
{{ $this->form }}
|
||||
|
||||
<x-filament::form.actions
|
||||
:actions="$this->getCachedFormActions()"
|
||||
:full-width="$this->hasFullWidthFormActions()"
|
||||
/>
|
||||
</x-filament::form>
|
||||
|
||||
@if (count($relationManagers = $this->getRelationManagers()))
|
||||
<x-filament::hr />
|
||||
|
||||
<x-filament::resources.relation-managers :active-manager="$activeRelationManager" :managers="$relationManagers" :owner-record="$record" :page-class="static::class" />
|
||||
@endif
|
||||
</x-filament::page>
|
||||
Reference in New Issue
Block a user