1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
.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.btn-default{type: "submit", name: "_continue", :'data-disable-with' => t("admin.form.cancel"), :formnovalidate => true}
%i.icon-remove
= t("admin.form.cancel")
|