2021-05-07 09:10:27 +00:00
|
|
|
- expanded = integration_expanded?('floc_')
|
|
|
|
|
|
|
|
%section.settings.no-animate#js-floc-settings{ class: ('expanded' if expanded) }
|
|
|
|
.settings-header
|
2022-07-06 18:08:29 +00:00
|
|
|
%h4.settings-title.js-settings-toggle.js-settings-toggle-trigger-only
|
2021-05-07 09:10:27 +00:00
|
|
|
= s_('FloC|Federated Learning of Cohorts')
|
2022-06-13 18:09:22 +00:00
|
|
|
= render Pajamas::ButtonComponent.new(button_options: { class: 'js-settings-toggle' }) do
|
2021-05-07 09:10:27 +00:00
|
|
|
= expanded ? _('Collapse') : _('Expand')
|
|
|
|
%p
|
|
|
|
= s_('FloC|Configure whether you want to participate in FloC.').html_safe
|
2021-12-23 03:10:23 +00:00
|
|
|
= link_to sprite_icon('question-o'), 'https://github.com/WICG/floc', target: '_blank', rel: 'noopener noreferrer', class: 'has-tooltip', title: _('More information')
|
2021-05-07 09:10:27 +00:00
|
|
|
|
|
|
|
.settings-content
|
2022-04-14 21:09:21 +00:00
|
|
|
= gitlab_ui_form_for @application_setting, url: general_admin_application_settings_path(anchor: 'js-floc-settings'), html: { class: 'fieldset-form', id: 'floc-settings' } do |f|
|
2022-06-14 12:08:53 +00:00
|
|
|
= form_errors(@application_setting, pajamas_alert: true)
|
2021-05-07 09:10:27 +00:00
|
|
|
|
|
|
|
%fieldset
|
|
|
|
.form-group
|
2022-04-14 21:09:21 +00:00
|
|
|
= f.gitlab_ui_checkbox_component :floc_enabled,
|
|
|
|
s_('FloC|Enable FloC (Federated Learning of Cohorts)')
|
2021-08-25 21:10:28 +00:00
|
|
|
= f.submit _('Save changes'), class: 'gl-button btn btn-confirm'
|