master
E. Almqvist 3 years ago
parent de8c08353d
commit 40bb294c89
  1. 4
      wesweb01/crud-music-2020/views/albums/edit.slim
  2. 2
      wesweb01/crud-music-2020/views/albums/index.slim

@ -0,0 +1,4 @@
form action="/albums/#{album['AlbumId']}/update" method="post"
input type="text" name="new_title" value="#{album['Title']}" placeholder="Album title"
input type="number" name="new_artistid" value="#{album['ArtistId']}" placeholder="Artist ID"
input type="submit" value="Update"

@ -5,8 +5,10 @@ ol
- albums.each do |album| - albums.each do |album|
li li
a href="albums/#{album['AlbumId']}" #{album["Title"]} a href="albums/#{album['AlbumId']}" #{album["Title"]}
a href="albums/#{album['AlbumId']}/edit" Edit
form action="albums/#{album['AlbumId']}/delete" method="post" form action="albums/#{album['AlbumId']}/delete" method="post"
input type="submit" value="Remove" input type="submit" value="Remove"

Loading…
Cancel
Save