Skip to content

Commit

Permalink
added "Removing X..." messages when deleting pages, snippets, layouts…
Browse files Browse the repository at this point in the history
…, and users
  • Loading branch information
jlong committed Oct 1, 2009
1 parent ea462b4 commit c7176fe
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/views/admin/layouts/remove.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
= image('layout', :alt => 'layout-icon')
= h @layout.name

- form_for [:admin, @layout], :html => { :method => 'delete' } do
- form_for [:admin, @layout], :html => { :method => 'delete', :onsubmit_status=>"Removing layout…" } do
%p.buttons
%input.button{:type=>"submit", :value=>"Delete Layout"}/
or
Expand Down
2 changes: 1 addition & 1 deletion app/views/admin/pages/remove.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
%tbody
= render_node @page, :simple => true

- form_for [:admin, @page.becomes(Page)], :html => {:method => :delete} do
- form_for [:admin, @page.becomes(Page)], :html => {:method => :delete, :onsubmit_status=>"Removing pages…"} do
%p.buttons
%input.button{:type=>"submit", :value=>"Delete Pages"}/
or
Expand Down
2 changes: 1 addition & 1 deletion app/views/admin/snippets/remove.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
= image('snippet', :alt => "snippet-icon")
%span.title= @snippet.name

- form_for [:admin, @snippet], :html => {:method => :delete} do
- form_for [:admin, @snippet], :html => {:method => :delete, :onsubmit_status=>"Removing snippet…"} do
%p.buttons
%input.button{:type=>"submit", :value=>"Delete Snippet"}/
or
Expand Down
2 changes: 1 addition & 1 deletion app/views/admin/users/remove.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
%td.user
%span.title= @user.name

- form_for [:admin, @user], :html => { :method => :delete } do
- form_for [:admin, @user], :html => { :method => :delete, :onsubmit_status=>"Removing user…" } do
%p.buttons
%input.button{:type=>"submit", :value=>"Delete User"}/
or
Expand Down

0 comments on commit c7176fe

Please sign in to comment.