IZ album edit page was not added
This commit is contained in:
parent
96a9c9455d
commit
c8b40001e5
1 changed files with 25 additions and 0 deletions
25
app/views/albums/edit.html.haml
Normal file
25
app/views/albums/edit.html.haml
Normal file
|
|
@ -0,0 +1,25 @@
|
||||||
|
%h1.big_text
|
||||||
|
.back
|
||||||
|
= link_to "⇧ #{@album.name}", @album
|
||||||
|
|
||||||
|
= "Editing #{@album.name}"
|
||||||
|
|
||||||
|
.sub_header
|
||||||
|
="updated #{how_long_ago(@album)}"
|
||||||
|
|
||||||
|
- form_for @album do |a|
|
||||||
|
= a.error_messages
|
||||||
|
%p
|
||||||
|
= a.text_field :name
|
||||||
|
|
||||||
|
#submit_block
|
||||||
|
= link_to "Cancel", root_path
|
||||||
|
or
|
||||||
|
= a.submit
|
||||||
|
|
||||||
|
.button.delete
|
||||||
|
= link_to 'Delete Album', @album, :confirm => 'Are you sure?', :method => :delete
|
||||||
|
|
||||||
|
#content_bottom
|
||||||
|
.back
|
||||||
|
= link_to "⇧ #{@album.name}", @album
|
||||||
Loading…
Reference in a new issue