OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Fixed storage OAuth application information forms
Andreas Pfohl43c7f3f5d527
diff --git a/frontend/src/global_styles/content/_buttons.sass b/frontend/src/global_styles/content/_buttons.sassindex 7dbe23dbc67..e1b67a16b35 100644--- a/frontend/src/global_styles/content/_buttons.sass+++ b/frontend/src/global_styles/content/_buttons.sass@@ -92,6 +92,16 @@ a.button&:hover, &:focus, &.-activebackground: var(--button--background-hover-color)+ &.-without-button-styling+ @include without-link-styling+ background: transparent+ border: none+ margin: 0+ padding: 0++ &:hover+ background: transparent+&.-tiny@include button-size(tiny)diff --git a/frontend/src/global_styles/content/_toast.sass b/frontend/src/global_styles/content/_toast.sassindex 1454414613f..cb083f9e298 100644--- a/frontend/src/global_styles/content/_toast.sass+++ b/frontend/src/global_styles/content/_toast.sass@@ -173,6 +173,8 @@ $nm-upload-box-padding: rem-calc(15) rem-calc(25)& p, & div, & ul>li, & .buttonfont-size: $nm-font-size+ &.-with-bottom-spacing+ margin-bottom: 2rem[class^="icon-"]&.-errordiff --git a/modules/storages/app/views/storages/admin/storages/show_oauth_application.html.erb b/modules/storages/app/views/storages/admin/storages/show_oauth_application.html.erbindex b304d3ef80b..ab1ba4c2615 100644--- a/modules/storages/app/views/storages/admin/storages/show_oauth_application.html.erb+++ b/modules/storages/app/views/storages/admin/storages/show_oauth_application.html.erb@@ -3,10 +3,7 @@<% local_assigns[:additional_breadcrumb] = "#{t("storages.provider_types.#{@object.provider_type}")} #{t("storages.label_oauth_application_details")}" %><%= toolbar title: "#{t("storages.provider_types.#{@object.provider_type}")} #{t("storages.label_oauth_application_details")}" %>-<div class="op-toast -warning">- <a title="{{ ::I18n.t('js.close_popup_title') }}"- class="op-toast--close icon-context icon-close">- </a>+<div class="op-toast -warning -with-bottom-spacing"><div class="op-toast--content"><p><%= t('repositories.storage.oauth_application_details') %></p></div>@@ -14,39 +11,63 @@<%= labelled_tabular_form_for @oauth_application, url: '/' do |f| -%><div class="form--field">- <%= f.text_field :uid,- label: t('storages.label_oauth_client_id'),- size: 40,- container_class: '-wide',- readonly: true,- id: 'client_id' %>- <% csp_onclick('this.focus(); this.select();', '#client_id') %>- <copy-to-clipboard click-target=".client-id-copy-button"- clipboard-target="#client_id">- </copy-to-clipboard>- <button class="client-id-copy-button toolbar-input--affix toolbar-input-group--affix -append"- title="<%= t(:label_copy_to_clipboard) %>">- <%= op_icon('icon-copy') %>- <span class="hidden-for-sighted"><%= t(:label_copy_to_clipboard) %></span>- </button>+ <label class="form--label"><%= t('storages.label_oauth_client_id') %></label>++ <div class="form--field-container">+ <div class="form--text-field-container -wide">+ <%= text_field_tag(+ :uid,+ @oauth_application.uid,+ {+ size: 40,+ readonly: true,+ id: 'client_id'+ }+ ) %>+ </div>+ <div class="form--field-affix">+ <% csp_onclick('this.focus(); this.select();', '#client_id') %>+ <copy-to-clipboard click-target=".client-id-copy-button"+ clipboard-target="#client_id">+ </copy-to-clipboard>+ <button class="client-id-copy-button button -without-button-styling"+ title="<%= t(:label_copy_to_clipboard) %>">+ <%= op_icon('icon-copy') %>+ <span class="hidden-for-sighted"><%= t(:label_copy_to_clipboard) %></span>+ </button>+ </div>+ </div></div>+<div class="form--field">- <%= f.text_field :plaintext_secret,- label: t('storages.label_oauth_client_secret'),- size: 40,- container_class: '-wide',- readonly: true,- id: 'secret' %>- <% csp_onclick('this.focus(); this.select();', '#secret') %>- <copy-to-clipboard click-target=".secret-copy-button"- clipboard-target="#secret">- </copy-to-clipboard>- <button class="secret-copy-button toolbar-input--affix toolbar-input-group--affix -append"- title="<%= t(:label_copy_to_clipboard) %>">- <%= op_icon('icon-copy') %>- <span class="hidden-for-sighted"><%= t(:label_copy_to_clipboard) %></span>- </button>+ <label class="form--label"><%= t('storages.label_oauth_client_secret') %></label>++ <div class="form--field-container">+ <div class="form--text-field-container -wide">+ <%= text_field_tag(+ :plaintext_secret,+ @oauth_application.plaintext_secret,+ {+ size: 40,+ readonly: true,+ id: 'secret'+ }+ ) %>+ </div>+ <div class="form--field-affix">+ <% csp_onclick('this.focus(); this.select();', '#secret') %>+ <copy-to-clipboard click-target=".secret-copy-button"+ clipboard-target="#secret">+ </copy-to-clipboard>+ <button class="secret-copy-button button -without-button-styling"+ title="<%= t(:label_copy_to_clipboard) %>">+ <%= op_icon('icon-copy') %>+ <span class="hidden-for-sighted"><%= t(:label_copy_to_clipboard) %></span>+ </button>+ </div>+ </div></div>+<% if @object.oauth_client %><%= link_to t("storages.buttons.done_continue_setup"), admin_settings_storage_path(@object), class: "-highlight -with-icon icon-checkmark button" %><% else %>