Adding CharacterForm livewire component
This commit is contained in:
parent
8a95143b8f
commit
4a7c2dd66c
2 changed files with 98 additions and 0 deletions
17
resources/views/form/character.blade.php
Normal file
17
resources/views/form/character.blade.php
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
|
||||
<div class="space-y-4">
|
||||
|
||||
<x-header>{{ __(($this->isNew() ? 'Create' : 'Edit') . ' character') }}</x-header>
|
||||
|
||||
<form class="space-y-4" wire:submit.prevent="submit">
|
||||
|
||||
<div>
|
||||
<x-ignite-label for="character.name">{{ __('Name') }}</x-ignite-label>
|
||||
<x-ignite-input name="character.name" wire:model="character.name" />
|
||||
</div>
|
||||
|
||||
<x-button type="info">{{ __('Save') }}</x-button>
|
||||
<x-button href="{{ route('admin.character.index') }}" type="warning">{{ __('Back') }}</x-button>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
Reference in a new issue