photomix/app/views/albums/edit.html.erb
Espen Antonsen 1b94fcc84f hmm
2009-10-12 00:20:38 +02:00

17 lines
405 B
Text

<h1>Edit Album</h1>
<% form_for @album do |f| %>
<%= f.error_messages %>
<%= render :partial => "form", :object => f %>
<%= f.submit "Update" %>
<% end %>
<% content_for :action_links do %>
<% if has_role?("admin") %>
<%= link_to("Delete album", { :action => "destroy", :id => @album },
:confirm => "Are you sure you want to delete this album?",
:method => :delete) %>
<% end %>
<% end %>