about summary refs log tree commit diff
path: root/laravel/resources/views/playlist.blade.php
diff options
context:
space:
mode:
authorZach DeCook <zachdecook@gmail.com>2018-12-27 10:22:36 -0500
committerZach DeCook <zachdecook@gmail.com>2018-12-27 10:22:36 -0500
commit1a9c3529c32df34b92538bb6599cf609fdf9bb3c (patch)
tree83d86919d15598314990cd4bd577c367a6452308 /laravel/resources/views/playlist.blade.php
parent7057844718f20f47109549a0f26745d88d66e195 (diff)
downloadprosongsa-1a9c3529c32df34b92538bb6599cf609fdf9bb3c.tar.gz
* Song View: Add 'back to playlist' link
Diffstat (limited to 'laravel/resources/views/playlist.blade.php')
-rw-r--r--laravel/resources/views/playlist.blade.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/laravel/resources/views/playlist.blade.php b/laravel/resources/views/playlist.blade.php
index 3026963..856c81c 100644
--- a/laravel/resources/views/playlist.blade.php
+++ b/laravel/resources/views/playlist.blade.php
@@ -10,4 +10,15 @@
     @endforeach
     </ul>
 
+    <form method="POST" action="/new/song">
+        <h3>Add song to playlist</h3>
+        @csrf
+        <input name='title' placeholder='title' type='text'/>
+        <input name='author' placeholder='author' type='text'/>
+        <input name='key' placeholder='Key (e.g. Am)' type='text' />
+        <input name='playlist' value='{{ $playlist->id }}' hidden/>
+        <br/>
+        <textarea name='text' placeholder='song lyrics/chords' style='width: 100%; height: 200px;' ></textarea>
+        <button type='submit'>Add song!</button>
+    </form>
 @endsection