2016-05-17 05:38:01 -04:00
|
|
|
.row.prepend-top-default.append-bottom-default
|
|
|
|
.col-lg-3
|
|
|
|
%h4.prepend-top-0
|
|
|
|
= @service.title
|
|
|
|
= boolean_to_icon @service.activated?
|
2013-05-22 09:58:44 -04:00
|
|
|
|
2016-05-17 05:38:01 -04:00
|
|
|
%p= @service.description
|
|
|
|
.col-lg-9
|
2016-12-16 09:45:56 -05:00
|
|
|
= 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
|
2016-12-19 09:21:39 -05:00
|
|
|
.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
|
2016-07-06 16:52:00 -04:00
|
|
|
|
2016-12-19 09:21:39 -05:00
|
|
|
= link_to 'Test settings', test_namespace_project_service_path(@project.namespace, @project, @service), class: "btn #{disabled_class}", title: disabled_title
|
2017-01-27 10:52:09 -05:00
|
|
|
= link_to "Cancel", namespace_project_settings_integrations_path(@project.namespace, @project), class: "btn btn-cancel"
|