debian-mirror-gitlab/app/views/admin/application_settings/_help_page.html.haml

27 lines
1.5 KiB
Text
Raw Normal View History

2019-09-30 21:07:59 +05:30
= form_for @application_setting, url: preferences_admin_application_settings_path(anchor: 'js-help-settings'), html: { class: 'fieldset-form' } do |f|
2018-05-09 12:01:36 +05:30
= form_errors(@application_setting)
%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
2018-11-18 11:00:15 +05:30
= f.label :help_page_text, 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
2019-07-07 11:18:12 +05:30
.form-text.text-muted= _('Markdown enabled')
2018-05-09 12:01:36 +05:30
.form-group
2018-11-08 19:23:39 +05:30
.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-07-07 11:18:12 +05:30
= _('Hide marketing-related entries from help')
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-03-11 19:13:27 +05:30
= f.text_field :help_page_support_url, class: 'form-control gl-form-input', placeholder: 'http://company.example.com/getting-help', :'aria-describedby' => 'support_help_block'
2019-10-12 21:52:04 +05:30
%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-01-03 14:25:43 +05:30
- if show_documentation_base_url_field?
.form-group
= f.label :help_page_documentation_base_url, _('Documentation pages URL'), class: 'label-bold'
2021-03-11 19:13:27 +05:30
= f.text_field :help_page_documentation_base_url, class: 'form-control gl-form-input', placeholder: 'https://docs.gitlab.com'
2021-01-03 14:25:43 +05:30
2021-04-17 20:07:23 +05:30
= f.submit _('Save changes'), class: "gl-button btn btn-confirm"