debian-mirror-gitlab/app/views/projects/services/_form.html.haml

19 lines
777 B
Text
Raw Normal View History

2014-09-02 18:07:02 +05:30
%h3.page-title
= @service.title
= boolean_to_icon @service.activated?
%p= @service.description
%hr
2015-09-11 14:41:01 +05:30
= 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
2014-09-02 18:07:02 +05:30
.form-actions
2015-12-23 02:04:40 +05:30
= form.submit 'Save changes', class: 'btn btn-save'
2014-09-02 18:07:02 +05:30
 
2015-04-26 12:48:37 +05:30
- 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}"
2015-12-23 02:04:40 +05:30
= link_to "Cancel", namespace_project_services_path(@project.namespace, @project), class: "btn btn-cancel"