summaryrefslogtreecommitdiff
path: root/app/views/projects/services/_form.html.haml
blob: 419dd827e49bf5762c11655e8ae979c828395681 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
- if lookup_context.template_exists?('top', "projects/services/#{integration.to_param}", true)
  = render "projects/services/#{integration.to_param}/top", integration: integration

%h3.page-title
  = integration.title
  - if integration.operating?
    = sprite_icon('check', css_class: 'gl-text-green-500')

- if vue_integration_form_enabled?
  = render 'shared/integration_settings', integration: integration
- else
  = form_for(integration, as: :service, url: scoped_integration_path(integration, project: @project, group: @group), method: :put, html: { class: 'gl-show-field-errors integration-settings-form js-integration-settings-form', data: { 'test-url' => test_project_integration_path(@project, integration), testid: 'integration-form' } }) do |form|
    = render 'shared/integration_settings', form: form, integration: integration
    %input{ id: 'services_redirect_to', type: 'hidden', name: 'redirect_to', value: request.referer }

- if lookup_context.template_exists?('show', "projects/services/#{integration.to_param}", true)
  %hr
  = render "projects/services/#{integration.to_param}/show", integration: integration