public
Description: Rails Plugin - a RailsEngines-based CMS extension for any Rails project
Homepage: http://6brand.com
Clone URL: git://github.com/JackDanger/simple_pages.git
added confirmation to page deletion (thanks Ted\!)

git-svn-id: http://svn.6brand.com/projects/plugins/simple_pages@323 
7491b73d-821b-0410-9297-ad1f6b5b4194
studioda (author)
Thu Apr 26 18:05:30 -0700 2007
commit  7e916de4e8ef8331789aec328110c1846abab812
tree    d48d784e6bed12c31f8ded85115af130a5fe1ba8
parent  c57f58a2cedd1965c8331d98e04ca2440d32c0b5
...
4
5
6
7
 
8
9
10
...
4
5
6
 
7
8
9
10
0
@@ -4,7 +4,7 @@
0
 <% @simple_pages.each do |p| %>
0
   <li id="page_<%= p.to_param %>" class="simple_page">
0
     <%= link_to image_tag('page_edit.png', :plugin => :simple_pages), simple_edit_page_path(p) if can_manage_pages? %>
0
- <%= link_to image_tag('page_delete.png', :plugin => :simple_pages), simple_page_path(p), :method => 'delete' if can_manage_pages? %>
0
+ <%= link_to image_tag('page_delete.png', :plugin => :simple_pages), simple_page_path(p), :method => 'delete', :confirm => "Are you really sure you want to delete this page?" if can_manage_pages? %>
0
     <span class="simple_page_title">
0
       <%= link_to p.title, simple_page_path(p) %>
0
     </span>

Comments

    No one has commented yet.