2020-07-28 23:09:34 +05:30
|
|
|
= form_errors(integration)
|
2015-09-11 14:41:01 +05:30
|
|
|
|
2020-07-28 23:09:34 +05:30
|
|
|
- if lookup_context.template_exists?('help', "projects/services/#{integration.to_param}", true)
|
|
|
|
= render "projects/services/#{integration.to_param}/help", subject: integration
|
|
|
|
- elsif integration.help.present?
|
2018-11-08 19:23:39 +05:30
|
|
|
.info-well
|
|
|
|
.well-segment
|
2020-07-28 23:09:34 +05:30
|
|
|
= markdown integration.help
|
2017-08-17 22:00:37 +05:30
|
|
|
|
|
|
|
.service-settings
|
2020-07-28 23:09:34 +05:30
|
|
|
- if @admin_integration
|
|
|
|
.js-vue-admin-integration-settings{ data: integration_form_data(@admin_integration) }
|
|
|
|
.js-vue-integration-settings{ data: integration_form_data(integration) }
|
2017-08-17 22:00:37 +05:30
|
|
|
|
2020-07-28 23:09:34 +05:30
|
|
|
- if show_service_trigger_events?(integration)
|
2018-11-08 19:23:39 +05:30
|
|
|
.form-group.row
|
2020-01-01 13:55:28 +05:30
|
|
|
%label.col-form-label.col-sm-2= _('Trigger')
|
2017-08-17 22:00:37 +05:30
|
|
|
|
|
|
|
.col-sm-10
|
2020-07-28 23:09:34 +05:30
|
|
|
- integration.configurable_events.each do |event|
|
2018-11-08 19:23:39 +05:30
|
|
|
.form-group
|
|
|
|
.form-check
|
|
|
|
= form.check_box service_event_field_name(event), class: 'form-check-input'
|
|
|
|
= form.label service_event_field_name(event), class: 'form-check-label' do
|
2017-08-17 22:00:37 +05:30
|
|
|
%strong
|
|
|
|
= event.humanize
|
|
|
|
|
2020-07-28 23:09:34 +05:30
|
|
|
- field = integration.event_field(event)
|
2017-08-17 22:00:37 +05:30
|
|
|
|
2018-11-08 19:23:39 +05:30
|
|
|
- if field
|
2017-08-17 22:00:37 +05:30
|
|
|
= form.text_field field[:name], class: "form-control", placeholder: field[:placeholder]
|
|
|
|
|
2018-11-08 19:23:39 +05:30
|
|
|
%p.text-muted
|
2020-07-28 23:09:34 +05:30
|
|
|
= integration.class.event_description(event)
|
2017-08-17 22:00:37 +05:30
|
|
|
|
2020-06-23 00:09:42 +05:30
|
|
|
- unless integration_form_refactor?
|
2020-07-28 23:09:34 +05:30
|
|
|
- integration.global_fields.each do |field|
|
2020-06-23 00:09:42 +05:30
|
|
|
= render 'shared/field', form: form, field: field
|