debian-mirror-gitlab/app/views/projects/_commit_button.html.haml
2022-07-23 20:15:48 +02:00

8 lines
516 B
Text

.form-actions.gl-display-flex
= render Pajamas::ButtonComponent.new(type: :submit, variant: :confirm, button_options: { id: 'commit-changes', class: 'js-commit-button qa-commit-button' }) do
= _('Commit changes')
= render Pajamas::ButtonComponent.new(href: cancel_path, button_options: { class: 'gl-ml-3', id: 'cancel-changes', aria: { label: _('Discard changes') }, data: { confirm: leave_edit_message, confirm_btn_variant: "danger" } }) do
= _('Cancel')
= render 'shared/projects/edit_information'