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: fc338dcf887cbc3dc5821d51aa57ccd7ac6e2641 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
.row.prepend-top-default.append-bottom-default
  .col-lg-3
    %h4.prepend-top-0
      = @service.title
      = boolean_to_icon @service.activated?

    %p= @service.description
  .col-lg-9
    = form_for(@service, as: :service, url: namespace_project_service_path(@project.namespace, @project, @service.to_param), method: :put, html: { class: 'form-horizontal' }) do |form|
      = render 'shared/service_settings', form: form, subject: @service
      .footer-block.row-content-block
        = form.submit 'Save changes', class: 'btn btn-save'
         
        - if @service.valid? && @service.activated?
          - unless @service.can_test?
            - disabled_class = 'disabled'
            - disabled_title = @service.disabled_title

          = link_to 'Test settings', test_namespace_project_service_path(@project.namespace, @project, @service), class: "btn #{disabled_class}", title: disabled_title
        = link_to "Cancel", namespace_project_services_path(@project.namespace, @project), class: "btn btn-cancel"