Commit 6f9ea7cb authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Improve application settings page according to feedback

* Replace btn-save with btn-success
* Add id to each section so it can be directly linked
Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent e4587cf0
......@@ -36,4 +36,4 @@
Newly registered users will by default be external
.form-actions
= f.submit 'Save changes', class: 'btn btn-save'
= f.submit 'Save changes', class: 'btn btn-success'
......@@ -17,4 +17,4 @@
= f.text_field :help_page_support_url, class: 'form-control', placeholder: 'http://company.example.com/getting-help', :'aria-describedby' => 'support_help_block'
%span.help-block#support_help_block Alternate support URL for help page
.form-actions
= f.submit 'Save changes', class: "btn btn-save"
= f.submit 'Save changes', class: "btn btn-success"
......@@ -17,4 +17,4 @@
it is enabled
= link_to icon('question-circle'), help_page_path('user/project/pages/getting_started_part_three.md', anchor: 'dns-txt-record')
.form-actions
= f.submit 'Save changes', class: "btn btn-save"
= f.submit 'Save changes', class: "btn btn-success"
......@@ -54,4 +54,4 @@
= f.text_area :sign_in_text, class: 'form-control', rows: 4
.help-block Markdown enabled
.form-actions
= f.submit 'Save changes', class: "btn btn-save"
= f.submit 'Save changes', class: "btn btn-success"
......@@ -54,4 +54,4 @@
.help-block Markdown enabled
.form-actions
= f.submit 'Save changes', class: "btn btn-save"
= f.submit 'Save changes', class: "btn btn-success"
......@@ -61,4 +61,4 @@
.col-sm-10
= f.select field_name, key_restriction_options_for_select(type), {}, class: 'form-control'
.form-actions
= f.submit 'Save changes', class: "btn btn-save"
= f.submit 'Save changes', class: "btn btn-success"
......@@ -3,7 +3,7 @@
- @content_class = "limit-container-width" unless fluid_layout
- expanded = Rails.env.test?
%section.settings.as-visibility-access.no-animate{ class: ('expanded' if expanded) }
%section.settings.as-visibility-access.no-animate#js-visibility-settings{ class: ('expanded' if expanded) }
.settings-header
%h4
Visibility and access controls
......@@ -14,7 +14,7 @@
.settings-content
= render 'visibility_and_access'
%section.settings.as-account-limit.no-animate{ class: ('expanded' if expanded) }
%section.settings.as-account-limit.no-animate#js-account-settings{ class: ('expanded' if expanded) }
.settings-header
%h4
Account and limit settings
......@@ -25,7 +25,7 @@
.settings-content
= render 'account_and_limit'
%section.settings.as-signup.no-animate{ class: ('expanded' if expanded) }
%section.settings.as-signup.no-animate#js-signup-settings{ class: ('expanded' if expanded) }
.settings-header
%h4
Sign-up restrictions
......@@ -36,7 +36,7 @@
.settings-content
= render 'signup'
%section.settings.as-signin.no-animate{ class: ('expanded' if expanded) }
%section.settings.as-signin.no-animate#js-signin-settings{ class: ('expanded' if expanded) }
.settings-header
%h4
Sign-in restrictions
......@@ -47,7 +47,7 @@
.settings-content
= render 'signin'
%section.settings.as-help-page.no-animate{ class: ('expanded' if expanded) }
%section.settings.as-help-page.no-animate#js-help-settings{ class: ('expanded' if expanded) }
.settings-header
%h4
Help page
......@@ -58,7 +58,7 @@
.settings-content
= render 'help_page'
%section.settings.as-pages.no-animate{ class: ('expanded' if expanded) }
%section.settings.as-pages.no-animate#js-pages-settings{ class: ('expanded' if expanded) }
.settings-header
%h4
Pages
......
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