Sha256: c29d4eb9eb8968ac69124a9d4ed87bb16e855c6aec7163842ea19b0e30155c08

Contents?: true

Size: 863 Bytes

Versions: 1

Compression:

Stored size: 863 Bytes

Contents

%input{type: :hidden, name: 'return_to', value: (params[:return_to].presence || request.referer)}
%br
.form-actions
  %button.btn.btn-primary{type: "submit", name: "_save", :'data-disable-with' => t("admin.form.save")}
    %i.icon-white.icon-ok
    = t("admin.form.save")
  %span.extra_buttons
    - if authorized? :new, @abstract_model
      %button.btn.btn-info{type: "submit", name: "_add_another", :'data-disable-with' => t("admin.form.save_and_add_another")}
        = t("admin.form.save_and_add_another")
    - if authorized? :edit, @abstract_model
      %button.btn.btn-info{type: "submit", name: "_add_edit", :'data-disable-with' => t("admin.form.save_and_edit")}
        = t("admin.form.save_and_edit")
    %button.btn{type: "submit", name: "_continue", :'data-disable-with' => t("admin.form.cancel")}
      %i.icon-remove
      = t("admin.form.cancel")

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails_admin-0.6.6 app/views/rails_admin/main/_submit_buttons.html.haml