2019-02-20 11:56:19 -05:00
|
|
|
= form_for @application_setting, url: preferences_admin_application_settings_path(anchor: 'js-help-settings'), html: { class: 'fieldset-form' } do |f|
|
2018-03-22 13:50:46 -04:00
|
|
|
= form_errors(@application_setting)
|
2018-03-26 14:56:33 -04:00
|
|
|
|
|
|
|
%fieldset
|
2019-03-14 15:13:35 -04:00
|
|
|
= render_if_exists 'admin/application_settings/help_text_setting', form: f
|
|
|
|
|
2018-06-13 03:40:55 -04:00
|
|
|
.form-group
|
2018-07-19 18:11:31 -04:00
|
|
|
= f.label :help_page_text, class: 'label-bold'
|
2018-06-13 03:40:55 -04:00
|
|
|
= f.text_area :help_page_text, class: 'form-control', rows: 4
|
2019-03-14 15:13:35 -04:00
|
|
|
.form-text.text-muted= _('Markdown enabled')
|
2018-06-13 03:40:55 -04:00
|
|
|
.form-group
|
|
|
|
.form-check
|
|
|
|
= f.check_box :help_page_hide_commercial_content, class: 'form-check-input'
|
|
|
|
= f.label :help_page_hide_commercial_content, class: 'form-check-label' do
|
2019-03-14 15:13:35 -04:00
|
|
|
= _('Hide marketing-related entries from help')
|
2018-06-13 03:40:55 -04:00
|
|
|
.form-group
|
2019-03-14 15:13:35 -04:00
|
|
|
= f.label :help_page_support_url, _('Support page URL'), class: 'label-bold'
|
2018-06-13 03:40:55 -04:00
|
|
|
= f.text_field :help_page_support_url, class: 'form-control', placeholder: 'http://company.example.com/getting-help', :'aria-describedby' => 'support_help_block'
|
2019-07-30 13:03:17 -04:00
|
|
|
%span.form-text.text-muted#support_help_block= _('Alternate support URL for help page and help dropdown')
|
2018-03-26 14:56:33 -04:00
|
|
|
|
2020-10-05 14:08:51 -04:00
|
|
|
- if show_documentation_base_url_field?
|
|
|
|
.form-group
|
|
|
|
= f.label :help_page_documentation_base_url, _('Documentation pages URL'), class: 'label-bold'
|
|
|
|
= f.text_field :help_page_documentation_base_url, class: 'form-control', placeholder: 'https://docs.gitlab.com'
|
|
|
|
|
2020-10-14 11:08:42 -04:00
|
|
|
= f.submit _('Save changes'), class: "gl-button btn btn-success"
|