about summary refs log tree commit diff
path: root/laravel/resources/views/editsong.blade.php
diff options
context:
space:
mode:
authorZach DeCook <zachdecook@gmail.com>2018-12-27 21:33:47 -0500
committerZach DeCook <zachdecook@gmail.com>2018-12-27 21:33:47 -0500
commitc0953948d7008100ab4fcb4c5df6076ed7e69e3c (patch)
tree26d3cbbc2386c7adb324cb6b9988de1f8a532f1c /laravel/resources/views/editsong.blade.php
parented8d234975e3df79ab60cdc990f42856e5811d3f (diff)
downloadprosongsa-c0953948d7008100ab4fcb4c5df6076ed7e69e3c.tar.gz
* Routes: Create edit route
Diffstat (limited to 'laravel/resources/views/editsong.blade.php')
-rw-r--r--laravel/resources/views/editsong.blade.php17
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