2022-04-14 17:09:21 -04:00
= gitlab_ui_form_for @application_setting, url: preferences_admin_application_settings_path(anchor: 'js-help-settings'), html: { class: 'fieldset-form' } do |f|
2022-06-15 14:08:44 -04:00
= form_errors(@application_setting, pajamas_alert: true)
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
2021-07-15 11:09:41 -04:00
= f.label :help_page_text, _('Additional text to show on the Help page'), class: 'label-bold'
2021-01-31 13:09:51 -05:00
= f.text_area :help_page_text, class: 'form-control gl-form-input', rows: 4
2021-08-04 23:10:19 -04:00
.form-text.text-muted= _('Markdown enabled.')
2018-06-13 03:40:55 -04:00
.form-group
2022-04-14 17:09:21 -04:00
= f.gitlab_ui_checkbox_component :help_page_hide_commercial_content, _('Hide marketing-related entries from the Help page')
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'
2021-08-04 23:10:19 -04:00
= f.text_field :help_page_support_url, class: 'form-control gl-form-input', placeholder: 'https://company.example.com/getting-help', :'aria-describedby' => 'support_help_block'
%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
2021-10-14 08:09:39 -04:00
.form-group
= f.label :help_page_documentation_base_url, _('Documentation pages URL'), class: 'gl-font-weight-bold'
= f.text_field :help_page_documentation_base_url, class: 'form-control gl-form-input', placeholder: 'https://docs.gitlab.com'
- docs_link_url = help_page_path('user/admin_area/settings/help_page', anchor: 'destination-requirements')
- docs_link_start = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'.html_safe % { url: docs_link_url }
%span.form-text.text-muted#support_help_block= html_escape(_('Requests for pages at %{code_start}%{help_text_url}%{code_end} redirect to the URL. The destination must meet certain requirements. %{docs_link_start}Learn more.%{docs_link_end}')) % { code_start: '<code>'.html_safe, help_text_url: help_url, code_end: '</code>'.html_safe, docs_link_start: docs_link_start, docs_link_end: '</a>'.html_safe }
2021-03-09 10:08:59 -05:00
= f.submit _('Save changes'), class: "gl-button btn btn-confirm"