Character: add ability to edit a character.
This commit is contained in:
parent
d8895901bf
commit
b6f1f8b887
8 changed files with 217 additions and 70 deletions
|
|
@ -3,7 +3,7 @@
|
|||
<x-slot name="title">{{ __('Add character') }}</x-slot>
|
||||
|
||||
<div class="p-6 mx-auto max-w-xl">
|
||||
<livewire:form.create-character-form>
|
||||
<livewire:form.create-character-form />
|
||||
</div>
|
||||
|
||||
</x-layout>
|
||||
|
|
|
|||
16
resources/views/character/edit.blade.php
Normal file
16
resources/views/character/edit.blade.php
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
<x-layout name="app">
|
||||
|
||||
<x-slot name="title">
|
||||
<div class="flex">
|
||||
{{ __('Character') }} -
|
||||
<x-class-icon class="w-8 h-8 mx-2" :name="$character->class" />
|
||||
{{ $character->level }} {{ $character->name }}
|
||||
- {{ __('Edit') }}
|
||||
</div>
|
||||
</x-slot>
|
||||
|
||||
<div class="p-6 mx-auto max-w-xl">
|
||||
<livewire:form.create-character-form :character="$character" />
|
||||
</div>
|
||||
|
||||
</x-layout>
|
||||
Reference in a new issue