Commit e7b9a4a1 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 46bc6c48
...@@ -49,4 +49,4 @@ ...@@ -49,4 +49,4 @@
includes the feature or if the project is public. includes the feature or if the project is public.
.form-actions .form-actions
= f.submit 'Save changes', class: 'btn btn-save' = f.submit 'Save changes', class: 'btn btn-success'
...@@ -22,4 +22,4 @@ ...@@ -22,4 +22,4 @@
= f.text_field :help_page_support_url, class: 'form-control', placeholder: 'http://company.example.com/getting-help', :'aria-describedby' => 'support_help_block' = 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 %span.help-block#support_help_block Alternate support URL for help page
.form-actions .form-actions
= f.submit 'Save changes', class: "btn btn-save" = f.submit 'Save changes', class: "btn btn-success"
...@@ -17,4 +17,4 @@ ...@@ -17,4 +17,4 @@
it is enabled it is enabled
= link_to icon('question-circle'), help_page_path('user/project/pages/getting_started_part_three.md', anchor: 'dns-txt-record') = link_to icon('question-circle'), help_page_path('user/project/pages/getting_started_part_three.md', anchor: 'dns-txt-record')
.form-actions .form-actions
= f.submit 'Save changes', class: "btn btn-save" = f.submit 'Save changes', class: "btn btn-success"
...@@ -54,4 +54,4 @@ ...@@ -54,4 +54,4 @@
= f.text_area :sign_in_text, class: 'form-control', rows: 4 = f.text_area :sign_in_text, class: 'form-control', rows: 4
.help-block Markdown enabled .help-block Markdown enabled
.form-actions .form-actions
= f.submit 'Save changes', class: "btn btn-save" = f.submit 'Save changes', class: "btn btn-success"
...@@ -54,4 +54,4 @@ ...@@ -54,4 +54,4 @@
.help-block Markdown enabled .help-block Markdown enabled
.form-actions .form-actions
= f.submit 'Save changes', class: "btn btn-save" = f.submit 'Save changes', class: "btn btn-success"
...@@ -75,4 +75,4 @@ ...@@ -75,4 +75,4 @@
.col-sm-10 .col-sm-10
= f.select field_name, key_restriction_options_for_select(type), {}, class: 'form-control' = f.select field_name, key_restriction_options_for_select(type), {}, class: 'form-control'
.form-actions .form-actions
= f.submit 'Save changes', class: "btn btn-save" = f.submit 'Save changes', class: "btn btn-success"
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
- @content_class = "limit-container-width" unless fluid_layout - @content_class = "limit-container-width" unless fluid_layout
- expanded = Rails.env.test? - 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 .settings-header
%h4 %h4
Visibility and access controls Visibility and access controls
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
.settings-content .settings-content
= render 'visibility_and_access' = 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 .settings-header
%h4 %h4
Account and limit settings Account and limit settings
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
.settings-content .settings-content
= render 'account_and_limit' = 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 .settings-header
%h4 %h4
Sign-up restrictions Sign-up restrictions
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
.settings-content .settings-content
= render 'signup' = 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 .settings-header
%h4 %h4
Sign-in restrictions Sign-in restrictions
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
.settings-content .settings-content
= render 'signin' = 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 .settings-header
%h4 %h4
Help page Help page
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
.settings-content .settings-content
= render 'help_page' = 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 .settings-header
%h4 %h4
Pages 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