Commit e9c01b0027148fdd4f3f9bafe95de872407665d1

Authored by Joenio Costa
Committed by Antonio Terceiro
1 parent d22c261e

ActionItem806: oops: forgot to add view!

Showing 1 changed file with 27 additions and 0 deletions   Show diff stats
app/views/cms/destroy.rhtml 0 → 100644
... ... @@ -0,0 +1,27 @@
  1 +<h1><%= _('Delete: %s') % @article.name %></h1>
  2 +
  3 +<%= error_messages_for 'article' %>
  4 +
  5 +<% labelled_form_for 'article', @article, :url => { :action => 'destroy' }, :method => 'post' do |f| %>
  6 +
  7 + <h2><%= @article.title %></h2>
  8 +
  9 + <%= @article.to_html %>
  10 +
  11 + <%= hidden_field_tag('id', @article) %>
  12 +
  13 + <hr/>
  14 +
  15 + <strong>
  16 + <% if @article.blog? %>
  17 + <%= _('Are you sure that you want to remove this folder? Note that all the items inside it will also be removed!') %>
  18 + <% else %>
  19 + <%= _('Are you sure that you want to remove this item?') %>
  20 + <% end %>
  21 + </strong>
  22 +
  23 + <% button_bar do %>
  24 + <%= submit_button :save, _('Yes, I want.') %>
  25 + <%= button :cancel, _("No, I don't want."), @article.url %>
  26 + <% end %>
  27 +<% end %>
... ...