Sha256: 73eb56d4111d0d97b79fcc1d9dd307402f2bac11be4162ca7826ddbcb035d71b

Contents?: true

Size: 954 Bytes

Versions: 3

Compression:

Stored size: 954 Bytes

Contents

.form-group.form-actions
  .col-sm-offset-2.col-sm-10
    %input{type: :hidden, name: 'return_to', value: (params[:return_to].presence || request.referer)}
    %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"), :formnovalidate => true}
        %i.icon-remove
        = t("admin.form.cancel")

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/rails_admin-0.7.0/app/views/rails_admin/main/_submit_buttons.html.haml
rails_admin-0.7.0 app/views/rails_admin/main/_submit_buttons.html.haml
rails_admin-0.6.8 app/views/rails_admin/main/_submit_buttons.html.haml