Backend for songs.zachdecook.com
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
@extends('layouts.app')
@section('title', "Editing $song[title]")
@section('content')
@if ($errors->any())
<div class="alert alert-danger">
<ul>
@foreach ($errors->all() as $error)
<li>{{ $error }}</li>
@endforeach
</ul>
</div>
@endif
<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}}'/>
<input name='key' placeholder='Key (e.g. Am)' type='text' value='{{$song->key}}'/>
<input name='verse' placeholder='Scripture (e.g. Matthew 1:23)' type='text' value='{{$song->verse}}'/>
<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
|