2019-09-30 21:07:59 +05:30
|
|
|
= form_for @application_setting, url: repository_admin_application_settings_path(anchor: 'js-mirror-settings') do |f|
|
2018-10-15 14:42:47 +05:30
|
|
|
= form_errors(@application_setting)
|
|
|
|
|
|
|
|
%fieldset
|
|
|
|
.form-group
|
2019-07-07 11:18:12 +05:30
|
|
|
= f.label :mirror_available, _('Enable mirror configuration'), class: 'label-bold'
|
2018-11-08 19:23:39 +05:30
|
|
|
.form-check
|
|
|
|
= f.check_box :mirror_available, class: 'form-check-input'
|
|
|
|
= f.label :mirror_available, class: 'form-check-label' do
|
2019-07-07 11:18:12 +05:30
|
|
|
= _('Allow mirrors to be set up for projects')
|
2018-11-08 19:23:39 +05:30
|
|
|
%span.form-text.text-muted
|
2019-07-07 11:18:12 +05:30
|
|
|
= _('If disabled, only admins will be able to set up mirrors in projects.')
|
2018-11-08 19:23:39 +05:30
|
|
|
= link_to icon('question-circle'), help_page_path('workflow/repository_mirroring')
|
2018-10-15 14:42:47 +05:30
|
|
|
|
2019-07-07 11:18:12 +05:30
|
|
|
= render_if_exists 'admin/application_settings/mirror_settings', form: f
|
|
|
|
|
|
|
|
= f.submit _('Save changes'), class: "btn btn-success"
|