Archived
1
0
Fork 0

app/Http/Livewire/Form/*: extend ModelForm to share ALOT of code and make concrete form classes smaller

This commit is contained in:
Henrik Hautakoski 2022-01-09 11:11:58 +01:00
parent 5f960cf3d9
commit 40b73e1c5c
6 changed files with 31 additions and 176 deletions

View file

@ -6,8 +6,8 @@
<form class="space-y-4" wire:submit.prevent="submit">
<div>
<x-ignite-label for="raid.name">{{ __('Name') }}</x-ignite-label>
<x-ignite-input name="raid.name" wire:model="raid.name" />
<x-ignite-label for="record.name">{{ __('Name') }}</x-ignite-label>
<x-ignite-input name="record.name" wire:model="record.name" />
</div>
<x-button type="info">{{ __('Save') }}</x-button>