Sha256: 9b8b0f9d94bc3fbf8f1727132cd5b89873c1cd3ef5c88797c424791796b9c8e4

Contents?: true

Size: 859 Bytes

Versions: 4

Compression:

Stored size: 859 Bytes

Contents

%input{type: :hidden, name: 'return_to', value: (params[:return_to].presence || request.referer)}
.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

4 entries across 4 versions & 1 rubygems

Version Path
rails_admin-0.6.5 app/views/rails_admin/main/_submit_buttons.html.haml
rails_admin-0.6.4 app/views/rails_admin/main/_submit_buttons.html.haml
rails_admin-0.6.3 app/views/rails_admin/main/_submit_buttons.html.haml
rails_admin-0.6.2 app/views/rails_admin/main/_submit_buttons.html.haml