From c8b40001e592fdbd4207130750ceba7ac3182e20 Mon Sep 17 00:00:00 2001 From: ilya Date: Wed, 28 Jul 2010 21:10:35 -0700 Subject: [PATCH] IZ album edit page was not added --- app/views/albums/edit.html.haml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 app/views/albums/edit.html.haml diff --git a/app/views/albums/edit.html.haml b/app/views/albums/edit.html.haml new file mode 100644 index 000000000..3843685e0 --- /dev/null +++ b/app/views/albums/edit.html.haml @@ -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