21 lines
770 B
Text
21 lines
770 B
Text
%h3.page-title
|
|
= @service.title
|
|
= boolean_to_icon @service.activated?
|
|
|
|
%p= @service.description
|
|
|
|
.back-link
|
|
= link_to namespace_project_services_path(@project.namespace, @project) do
|
|
← to services
|
|
|
|
%hr
|
|
|
|
= 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
|
|
|
|
.form-actions
|
|
= form.submit 'Save', class: 'btn btn-save'
|
|
|
|
- if @service.valid? && @service.activated?
|
|
- disabled = @service.can_test? ? '':'disabled'
|
|
= link_to 'Test settings', test_namespace_project_service_path(@project.namespace, @project, @service.to_param), class: "btn #{disabled}"
|