2016-06-16 23:09:34 +05:30
|
|
|
.row.prepend-top-default.append-bottom-default
|
|
|
|
.col-lg-3
|
|
|
|
%h4.prepend-top-0
|
|
|
|
= @service.title
|
|
|
|
= boolean_to_icon @service.activated?
|
2014-09-02 18:07:02 +05:30
|
|
|
|
2016-06-16 23:09:34 +05:30
|
|
|
%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
|
2016-08-24 12:49:21 +05:30
|
|
|
|
2016-06-16 23:09:34 +05:30
|
|
|
= form.submit 'Save changes', class: 'btn btn-save'
|
|
|
|
|
|
|
|
- if @service.valid? && @service.activated?
|
|
|
|
- disabled = @service.can_test? ? '':'disabled'
|
2016-08-24 12:49:21 +05:30
|
|
|
= link_to 'Test settings', test_namespace_project_service_path(@project.namespace, @project, @service), class: "btn #{disabled}", title: @service.disabled_title
|
2016-06-16 23:09:34 +05:30
|
|
|
= link_to "Cancel", namespace_project_services_path(@project.namespace, @project), class: "btn btn-cancel"
|