Commit 1302285d authored by Justin Ho Tuan Duong's avatar Justin Ho Tuan Duong Committed by Kushal Pandya

Update layout on instance-level integrations

To be the same as project-level integrations with a 4-8
column layout.
parent a8fe46a4
...@@ -5,7 +5,7 @@ import { GlNewDropdown, GlNewDropdownItem } from '@gitlab/ui'; ...@@ -5,7 +5,7 @@ import { GlNewDropdown, GlNewDropdownItem } from '@gitlab/ui';
const dropdownOptions = [ const dropdownOptions = [
{ {
value: false, value: false,
text: s__('Integrations|Use instance level settings'), text: s__('Integrations|Use default settings'),
}, },
{ {
value: true, value: true,
...@@ -48,7 +48,7 @@ export default { ...@@ -48,7 +48,7 @@ export default {
<div <div
class="gl-display-flex gl-justify-content-space-between gl-align-items-baseline gl-py-4 gl-mt-5 gl-mb-6 gl-border-t-1 gl-border-t-solid gl-border-b-1 gl-border-b-solid gl-border-gray-100" class="gl-display-flex gl-justify-content-space-between gl-align-items-baseline gl-py-4 gl-mt-5 gl-mb-6 gl-border-t-1 gl-border-t-solid gl-border-b-1 gl-border-b-solid gl-border-gray-100"
> >
<span>{{ s__('Integrations|This integration has multiple settings available.') }}</span> <span>{{ s__('Integrations|Default settings are inherited from the instance level.') }}</span>
<input name="service[inherit_from_id]" :value="override ? '' : inheritFromId" type="hidden" /> <input name="service[inherit_from_id]" :value="override ? '' : inheritFromId" type="hidden" />
<gl-new-dropdown :text="selected.text"> <gl-new-dropdown :text="selected.text">
<gl-new-dropdown-item <gl-new-dropdown-item
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
.row.gl-mt-3.gl-mb-3 .row.gl-mt-3.gl-mb-3
.col-lg-4 .col-lg-4
%h4.gl-mt-0 %h3.page-title.gl-mt-0
= @service.title = @service.title
- [true, false].each do |value| - [true, false].each do |value|
- hide_class = 'd-none' if @service.operating? != value - hide_class = 'd-none' if @service.operating? != value
......
- integration = local_assigns.fetch(:integration) - integration = local_assigns.fetch(:integration)
%h3.page-title .row.gl-mt-3
= integration.title .col-lg-4
%h3.page-title.gl-mt-0
%p= integration.description = integration.title
= form_for integration, as: :service, url: scoped_integration_path(integration), method: :put, html: { class: 'gl-show-field-errors fieldset-form integration-settings-form js-integration-settings-form', data: { 'can-test' => integration.can_test?, 'test-url' => scoped_test_integration_path(integration) } } do |form| .col-lg-8
= render 'shared/service_settings', form: form, integration: integration = form_for integration, as: :service, url: scoped_integration_path(integration), method: :put, html: { class: 'gl-show-field-errors integration-settings-form js-integration-settings-form', data: { 'can-test' => integration.can_test?, 'test-url' => scoped_test_integration_path(integration) } } do |form|
= render 'shared/service_settings', form: form, integration: integration
- if integration.editable?
.footer-block.row-content-block - if integration.editable?
= service_save_button .footer-block.row-content-block
= link_to _('Cancel'), scoped_integration_path(integration), class: 'btn btn-cancel' = service_save_button
= link_to _('Cancel'), scoped_integration_path(integration), class: 'btn btn-cancel'
...@@ -13078,6 +13078,9 @@ msgstr "" ...@@ -13078,6 +13078,9 @@ msgstr ""
msgid "Integrations|Comment settings:" msgid "Integrations|Comment settings:"
msgstr "" msgstr ""
msgid "Integrations|Default settings are inherited from the instance level."
msgstr ""
msgid "Integrations|Enable comments" msgid "Integrations|Enable comments"
msgstr "" msgstr ""
...@@ -13090,13 +13093,10 @@ msgstr "" ...@@ -13090,13 +13093,10 @@ msgstr ""
msgid "Integrations|Standard" msgid "Integrations|Standard"
msgstr "" msgstr ""
msgid "Integrations|This integration has multiple settings available."
msgstr ""
msgid "Integrations|Use custom settings" msgid "Integrations|Use custom settings"
msgstr "" msgstr ""
msgid "Integrations|Use instance level settings" msgid "Integrations|Use default settings"
msgstr "" msgstr ""
msgid "Integrations|When a Jira issue is mentioned in a commit or merge request a remote link and comment (if enabled) will be created." msgid "Integrations|When a Jira issue is mentioned in a commit or merge request a remote link and comment (if enabled) will be created."
......
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