about summary refs log tree commit diff
path: root/laravel/resources
diff options
context:
space:
mode:
authorZach DeCook <zachdecook@gmail.com>2019-01-29 18:53:08 -0500
committerZach DeCook <zachdecook@gmail.com>2019-01-29 18:53:08 -0500
commit4cffc56aef98d44fb5cb12ec5e5ffae7207b843c (patch)
tree4f6968e40ad316baadb4f13196248821eeee74e5 /laravel/resources
parent29faf211114624ab724cfde5707649f9ae856ada (diff)
downloadprosongsa-4cffc56aef98d44fb5cb12ec5e5ffae7207b843c.tar.gz
* Editing: Go back to same key you came from
(Also show key in song name)
Diffstat (limited to 'laravel/resources')
-rw-r--r--laravel/resources/views/editsong.blade.php1
-rw-r--r--laravel/resources/views/song.blade.php6
2 files changed, 6 insertions, 1 deletions
diff --git a/laravel/resources/views/editsong.blade.php b/laravel/resources/views/editsong.blade.php
index 8bc7d22..267f04a 100644
--- a/laravel/resources/views/editsong.blade.php
+++ b/laravel/resources/views/editsong.blade.php
@@ -5,6 +5,7 @@
 
     <form method="POST" action="{{ route('song.show',['song'=>$song]) }}">
         <input name='playlistReturn' hidden value='{{$_GET['playlist'] ?? ''}}'/>
+        <input name='keyReturn' hidden value='{{$_GET['key'] ?? ''}}'/>
         @csrf
         <input name='title' placeholder='title' type='text' value='{{$song->title}}'/>
         <input name='author' placeholder='author' type='text' value='{{$song->author}}'/>
diff --git a/laravel/resources/views/song.blade.php b/laravel/resources/views/song.blade.php
index 6fed78b..9170144 100644
--- a/laravel/resources/views/song.blade.php
+++ b/laravel/resources/views/song.blade.php
@@ -35,7 +35,11 @@
         Scripture: {{$song->verse}}<br/>
     @endif
     @can('update', $song )
-        <a href='{{ route( 'song.edit', ['song' => $song, 'playlist' => $playlist ?? ''] ) }}'>edit this song</a>
+        <a href='{{ route( 'song.edit', [
+            'song' => $song,
+            'playlist' => $playlist ?? '',
+            'key' => $key,
+            ] ) }}'>edit this song</a>
     @endcan
 
     <form>