2022-05-30 18:08:57 +00:00
|
|
|
- expanded = integration_expanded?('jira_connect')
|
|
|
|
|
|
|
|
%section.settings.no-animate#js-jira_connect-settings{ class: ('expanded' if expanded) }
|
|
|
|
.settings-header
|
2022-07-06 18:08:29 +00:00
|
|
|
%h4.settings-title.js-settings-toggle.js-settings-toggle-trigger-only
|
2022-05-30 18:08:57 +00:00
|
|
|
= s_('JiraConnect|GitLab for Jira App')
|
2022-06-13 18:09:22 +00:00
|
|
|
= render Pajamas::ButtonComponent.new(button_options: { class: 'js-settings-toggle' }) do
|
2022-05-30 18:08:57 +00:00
|
|
|
= expanded ? _('Collapse') : _('Expand')
|
|
|
|
%p
|
|
|
|
= s_('JiraConnect|Configure your Jira Connect Application ID.')
|
|
|
|
= link_to sprite_icon('question-o'), 'https://marketplace.atlassian.com/apps/1221011/gitlab-com-for-jira-cloud', target: '_blank', rel: "noopener noreferrer", class: 'has-tooltip', title: _('More information'), aria: { label: _('GitLab for Jira Cloud') }
|
|
|
|
|
|
|
|
.settings-content
|
|
|
|
= gitlab_ui_form_for @application_setting, url: general_admin_application_settings_path(anchor: 'js-jira-connect-application-id-settings'), html: { class: 'fieldset-form', id: 'jira-connect-application-id-settings' } do |f|
|
2022-07-06 21:08:58 +00:00
|
|
|
= form_errors(@application_setting, pajamas_alert: true)
|
2022-05-30 18:08:57 +00:00
|
|
|
|
|
|
|
%fieldset
|
|
|
|
.form-group
|
|
|
|
= f.label :jira_connect_application_key, s_('JiraConnect|Jira Connect Application ID'), class: 'label-bold'
|
|
|
|
= f.text_field :jira_connect_application_key, class: 'form-control gl-form-input'
|
|
|
|
= f.submit _('Save changes'), class: 'gl-button btn btn-confirm'
|