Sha256: 170013688df736d14cd15dc2f13615a92b6df69820515f24beb1c7162027e79a
Contents?: true
Size: 914 Bytes
Versions: 1
Compression:
Stored size: 914 Bytes
Contents
<%= render :partial => 'caboose/pages/admin_header' %> <div id='message'> <p class='note warning'>Are you sure you want to delet the page? This can't be undone.<br /><br /> <input type='button' onclick='delete_page(<%= @page.id %>, true);' /> <input type='button' onclick="window.location='/admin/pages/<%= @page.id %>/edit';" /> </p> </div> <%= render :partial => 'caboose/pages/admin_footer' %> <% content_for :caboose_js do %> <%= javascript_include_tag "caboose/model/all" %> <script type="text/javascript"> function delete_page(page_id, confirm) { $('#message').html("<p class='loading'>Deleting page...</p>"); $.ajax({ url: '/admin/pages/' + page_id + '/delete', type: 'delete', success: function(resp) { if (resp.error) $('#message').html("<p class='note error'>" + resp.error + "</p>"); if (resp.redirect) window.location = resp.redirect } }); } </script> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
caboose-cms-0.2.64 | app/views/caboose/pages/admin_delete.html.erb |