Backend for songs.zachdecook.com
Diffstat (limited to 'laravel/resources/views/editsong.blade.php')
| -rw-r--r-- | laravel/resources/views/editsong.blade.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/laravel/resources/views/editsong.blade.php b/laravel/resources/views/editsong.blade.php new file mode 100644 index 0000000..ae0060d --- /dev/null +++ b/laravel/resources/views/editsong.blade.php @@ -0,0 +1,17 @@ +@extends('layouts.app') +@section('title', "Editing $song[title]") + +@section('content') + + <form method="POST" action="{{ route('song.show',['song'=>$song]) }}"> + @csrf + <input name='title' placeholder='title' type='text' value='{{$song->title}}'/> + <input name='author' placeholder='author' type='text' value='{{$song->author}}'/> + <input name='key' placeholder='Key (e.g. Am)' type='text' value='{{$song->key}}'/> + <br/> + <textarea name='text' placeholder='song lyrics/chords' + style='width: 100%; height: 200px; font-family: monospace;' >{{$song->text}}</textarea> + <button type='submit'>Save!</button> + </form> + +@endsection |