Skip to content
Browse files

add icons for delete page buttons [ci skip]

  • Loading branch information...
1 parent f928e9b commit 512bb620288155f629c42f585da05dd8e10157f7 @bbenezech bbenezech committed Feb 24, 2012
View
2 app/views/rails_admin/main/_delete_notice.html.haml
@@ -1,6 +1,6 @@
- object = delete_notice
-%li{:style => 'display:block; margin-bottom:10px'}
+%li{:style => 'display:block; margin-top:10px'}
%span.label= @abstract_model.pretty_name
= link_to @model_config.with(:object => object).object_label, show_path(:model_name => @abstract_model.to_param, :id => object.id)
%ul
View
8 app/views/rails_admin/main/bulk_delete.html.haml
@@ -3,5 +3,9 @@
= form_tag bulk_delete_path(:model_name => @abstract_model.to_param, :bulk_ids => @objects.map(&:id)), :method => :delete do
.form-actions
%input{:type => :hidden, :name => 'return_to', :value => (params[:return_to].presence || request.referer)}
- %button.btn.btn-danger{:type => "submit", :'data-disable-with' => t("admin.form.confirmation")}= t("admin.form.confirmation")
- %button.btn{:type => "submit", :name => "_continue", :'data-disable-with' => t("admin.form.cancel")}= t("admin.form.cancel")
+ %button.btn.btn-danger{:type => "submit", :'data-disable-with' => t("admin.form.confirmation")}
+ %i.icon-white.icon-ok
+ = t("admin.form.confirmation")
+ %button.btn{:type => "submit", :name => "_continue", :'data-disable-with' => t("admin.form.cancel")}
+ %i.icon-remove
+ = t("admin.form.cancel")
View
8 app/views/rails_admin/main/delete.html.haml
@@ -10,5 +10,9 @@
= form_for(@object, :url => delete_path(:model_name => @abstract_model.to_param, :id => @object.id), :html => {:method => "delete"}) do
%input{:type => :hidden, :name => 'return_to', :value => (params[:return_to].presence || request.referer)}
.form-actions
- %button.btn.btn-danger{:type => "submit", :'data-disable-with' => t("admin.form.confirmation")}= t("admin.form.confirmation")
- %button.btn{:type => "submit", :name => "_continue", :'data-disable-with' => t("admin.form.cancel")}= t("admin.form.cancel")
+ %button.btn.btn-danger{:type => "submit", :'data-disable-with' => t("admin.form.confirmation")}
+ %i.icon-white.icon-ok
+ = t("admin.form.confirmation")
+ %button.btn{:type => "submit", :name => "_continue", :'data-disable-with' => t("admin.form.cancel")}
+ %i.icon-remove
+ = t("admin.form.cancel")

0 comments on commit 512bb62

Please sign in to comment.
Something went wrong with that request. Please try again.