ref: master
app/views/cms/destroy.html.erb
<%= _('Delete: %s') % @article.name %>
<%= error_messages_for 'article' %> <%= labelled_form_for 'article', :url => { :action => 'destroy' }, :method => 'post' do |f| %> <% if @article.folder? %> <%= _('Are you sure that you want to remove this folder? Note that all the items inside it will also be removed!') %> <% else %> <%= _('Are you sure that you want to remove this item?') %> <% end %> <%= button_bar do %> <%= submit_button :save, _('Yes, I want.') %> <%= button :cancel, _("No, I don't want."), @article.url %> <% end %><%= @article.title %>
<%= @article.to_html %> <%= hidden_field_tag('id', @article) %>
<% end %>