2022-06-21 17:19:12 +05:30
= gitlab_ui_form_for @application_setting, url: preferences_admin_application_settings_path(anchor: 'js-help-settings'), html: { class: 'fieldset-form' } do |f|
2022-07-23 23:45:48 +05:30
= form_errors(@application_setting, pajamas_alert: true)
2018-05-09 12:01:36 +05:30
%fieldset
2019-07-07 11:18:12 +05:30
= render_if_exists 'admin/application_settings/help_text_setting', form: f
2018-05-09 12:01:36 +05:30
.form-group
2021-09-30 23:02:18 +05:30
= f.label :help_page_text, _('Additional text to show on the Help page'), class: 'label-bold'
2021-03-11 19:13:27 +05:30
= f.text_area :help_page_text, class: 'form-control gl-form-input', rows: 4
2021-10-27 15:23:28 +05:30
.form-text.text-muted= _('Markdown enabled.')
2018-05-09 12:01:36 +05:30
.form-group
2022-06-21 17:19:12 +05:30
= f.gitlab_ui_checkbox_component :help_page_hide_commercial_content, _('Hide marketing-related entries from the Help page')
2018-05-09 12:01:36 +05:30
.form-group
2019-07-07 11:18:12 +05:30
= f.label :help_page_support_url, _('Support page URL'), class: 'label-bold'
2021-10-27 15:23:28 +05:30
= 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-05-09 12:01:36 +05:30
2021-11-18 22:05:49 +05:30
.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-04-17 20:07:23 +05:30
= f.submit _('Save changes'), class: "gl-button btn btn-confirm"