Commit f49ec613 authored by Mark Florian's avatar Mark Florian

Merge branch 'btn-confirm-user-settings' into 'master'

Move from btn-success to btn-confirm in app/views/profiles directory

See merge request gitlab-org/gitlab!54748
parents 5d7e18f7 1cb30c8c
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
= link_to _('Manage two-factor authentication'), profile_two_factor_auth_path, class: 'gl-button btn btn-confirm' = link_to _('Manage two-factor authentication'), profile_two_factor_auth_path, class: 'gl-button btn btn-confirm'
- else - else
.gl-mb-3 .gl-mb-3
= link_to _('Enable two-factor authentication'), profile_two_factor_auth_path, class: 'gl-button btn btn-success', data: { qa_selector: 'enable_2fa_button' } = link_to _('Enable two-factor authentication'), profile_two_factor_auth_path, class: 'gl-button btn btn-confirm', data: { qa_selector: 'enable_2fa_button' }
.col-lg-12 .col-lg-12
%hr %hr
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
.actions .actions
= form_tag profile_chat_names_path, method: :post do = form_tag profile_chat_names_path, method: :post do
= hidden_field_tag :token, @chat_name_token.token = hidden_field_tag :token, @chat_name_token.token
= submit_tag _("Authorize"), class: "gl-button btn btn-success wide float-left" = submit_tag _("Authorize"), class: "gl-button btn btn-confirm wide float-left"
= form_tag deny_profile_chat_names_path, method: :delete do = form_tag deny_profile_chat_names_path, method: :delete do
= hidden_field_tag :token, @chat_name_token.token = hidden_field_tag :token, @chat_name_token.token
= submit_tag _("Deny"), class: "gl-button btn btn-danger gl-ml-3" = submit_tag _("Deny"), class: "gl-button btn btn-danger gl-ml-3"
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
= f.label :email, _('Email'), class: 'label-bold' = f.label :email, _('Email'), class: 'label-bold'
= f.text_field :email, class: 'form-control gl-form-input', data: { qa_selector: 'email_address_field' } = f.text_field :email, class: 'form-control gl-form-input', data: { qa_selector: 'email_address_field' }
.gl-mt-3 .gl-mt-3
= f.submit _('Add email address'), class: 'gl-button btn btn-success', data: { qa_selector: 'add_email_address_button' } = f.submit _('Add email address'), class: 'gl-button btn btn-confirm', data: { qa_selector: 'add_email_address_button' }
%hr %hr
%h4.gl-mt-0 %h4.gl-mt-0
= _('Linked emails (%{email_count})') % { email_count: @emails.load.size + 1 } = _('Linked emails (%{email_count})') % { email_count: @emails.load.size + 1 }
......
...@@ -7,4 +7,4 @@ ...@@ -7,4 +7,4 @@
= f.text_area :key, class: "form-control", rows: 8, required: true, placeholder: _("Don't paste the private part of the GPG key. Paste the public part which begins with '-----BEGIN PGP PUBLIC KEY BLOCK-----'.") = f.text_area :key, class: "form-control", rows: 8, required: true, placeholder: _("Don't paste the private part of the GPG key. Paste the public part which begins with '-----BEGIN PGP PUBLIC KEY BLOCK-----'.")
.gl-mt-3 .gl-mt-3
= f.submit s_('Profiles|Add key'), class: "gl-button btn btn-success" = f.submit s_('Profiles|Add key'), class: "gl-button btn btn-confirm"
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
%strong= _('Oops, are you sure?') %strong= _('Oops, are you sure?')
%p= s_("Profiles|This doesn't look like a public SSH key, are you sure you want to add it? It will be publicly visible.") %p= s_("Profiles|This doesn't look like a public SSH key, are you sure you want to add it? It will be publicly visible.")
%button.btn.gl-button.btn-success.js-add-ssh-key-validation-confirm-submit= _("Yes, add it") %button.btn.gl-button.btn-confirm.js-add-ssh-key-validation-confirm-submit= _("Yes, add it")
.gl-mt-3 .gl-mt-3
= f.submit s_('Profiles|Add key'), class: "gl-button btn btn-success js-add-ssh-key-validation-original-submit qa-add-key-button" = f.submit s_('Profiles|Add key'), class: "gl-button btn btn-confirm js-add-ssh-key-validation-original-submit qa-add-key-button"
...@@ -30,6 +30,6 @@ ...@@ -30,6 +30,6 @@
= f.label :password_confirmation, _('Password confirmation'), class: 'label-bold' = f.label :password_confirmation, _('Password confirmation'), class: 'label-bold'
= f.password_field :password_confirmation, required: true, class: 'form-control gl-form-input', data: { qa_selector: 'confirm_password_field' } = f.password_field :password_confirmation, required: true, class: 'form-control gl-form-input', data: { qa_selector: 'confirm_password_field' }
.gl-mt-3.gl-mb-3 .gl-mt-3.gl-mb-3
= f.submit _('Save password'), class: "gl-button btn btn-success gl-mr-3", data: { qa_selector: 'save_password_button' } = f.submit _('Save password'), class: "gl-button btn btn-confirm gl-mr-3", data: { qa_selector: 'save_password_button' }
- unless @user.password_automatically_set? - unless @user.password_automatically_set?
= link_to _('I forgot my password'), reset_profile_password_path, method: :put = link_to _('I forgot my password'), reset_profile_password_path, method: :put
...@@ -28,4 +28,4 @@ ...@@ -28,4 +28,4 @@
.col-sm-10 .col-sm-10
= f.password_field :password_confirmation, required: true, class: 'form-control gl-form-input' = f.password_field :password_confirmation, required: true, class: 'form-control gl-form-input'
.form-actions .form-actions
= f.submit _('Set new password'), class: 'gl-button btn btn-success' = f.submit _('Set new password'), class: 'gl-button btn btn-confirm'
...@@ -127,7 +127,7 @@ ...@@ -127,7 +127,7 @@
= s_("Profiles|Choose to show contributions of private projects on your public profile without any project, repository or organization information") = s_("Profiles|Choose to show contributions of private projects on your public profile without any project, repository or organization information")
.row.gl-mt-3.gl-mb-3.gl-justify-content-end .row.gl-mt-3.gl-mb-3.gl-justify-content-end
.col-lg-8 .col-lg-8
= f.submit s_("Profiles|Update profile settings"), class: 'gl-button btn btn-success' = f.submit s_("Profiles|Update profile settings"), class: 'gl-button btn btn-confirm'
= link_to _("Cancel"), user_path(current_user), class: 'gl-button btn btn-cancel' = link_to _("Cancel"), user_path(current_user), class: 'gl-button btn btn-cancel'
.modal.modal-profile-crop{ data: { cropper_css_path: ActionController::Base.helpers.stylesheet_path('lazy_bundles/cropper.css') } } .modal.modal-profile-crop{ data: { cropper_css_path: ActionController::Base.helpers.stylesheet_path('lazy_bundles/cropper.css') } }
......
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
= label_tag :pin_code, _('Pin code'), class: "label-bold" = label_tag :pin_code, _('Pin code'), class: "label-bold"
= text_field_tag :pin_code, nil, class: "form-control", required: true, data: { qa_selector: 'pin_code_field' } = text_field_tag :pin_code, nil, class: "form-control", required: true, data: { qa_selector: 'pin_code_field' }
.gl-mt-3 .gl-mt-3
= submit_tag _('Register with two-factor app'), class: 'gl-button btn btn-success', data: { qa_selector: 'register_2fa_app_button' } = submit_tag _('Register with two-factor app'), class: 'gl-button btn btn-confirm', data: { qa_selector: 'register_2fa_app_button' }
%hr %hr
......
---
title: Move from btn-success to btn-confirm in app/views/profiles directory
merge_request: 54748
author: Yogi (@yo)
type: changed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment