Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_form.html.haml « services « projects « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a0d9d29a7ae66c9cad6dbfe67de47f32427a149a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
.row.prepend-top-default.append-bottom-default
  .col-lg-3
    %h4.prepend-top-0
      = @service.title
      - [true, false].each do |value|
        - hide_class = 'd-none' if @service.activated? != value
        %span.js-service-active-status{ class: hide_class, data: { value: value.to_s } }
          = boolean_to_icon value

    - if @service.respond_to?(:detailed_description)
      %p= @service.detailed_description
  .col-lg-9
    = form_for(@service, as: :service, url: project_service_path(@project, @service.to_param), method: :put, html: { class: 'gl-show-field-errors integration-settings-form js-integration-settings-form', data: { 'can-test' => @service.can_test?, 'test-url' => test_project_service_path(@project, @service) } }) do |form|
      = render 'shared/service_settings', form: form, service: @service
      - if @service.editable?
        .footer-block.row-content-block
          = service_save_button(@service)
           
          = link_to _('Cancel'), project_settings_integrations_path(@project), class: 'btn btn-cancel'

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