2019-02-20 11:56:19 -05:00
= form_for @application_setting, url: preferences_admin_application_settings_path(anchor: 'js-email-settings'), html: { class: 'fieldset-form' } do |f|
2018-04-04 05:44:32 -04:00
= form_errors(@application_setting)
%fieldset
2018-06-13 03:40:55 -04:00
.form-group
.form-check
= f.check_box :email_author_in_body, class: 'form-check-input'
= f.label :email_author_in_body, class: 'form-check-label' do
2019-03-14 15:13:35 -04:00
= _('Include author name in notification email body')
2018-06-13 03:40:55 -04:00
.form-text.text-muted
2021-07-23 08:09:05 -04:00
= _("Include the name of the author of the issue, merge request or comment in the email body. By default, GitLab overrides the email sender's name. Some email servers don't support that option.")
2018-06-13 03:40:55 -04:00
.form-group
.form-check
= f.check_box :html_emails_enabled, class: 'form-check-input'
= f.label :html_emails_enabled, class: 'form-check-label' do
2021-07-23 08:09:05 -04:00
= _('Enable multipart emails')
2018-06-13 03:40:55 -04:00
.form-text.text-muted
2021-07-23 08:09:05 -04:00
= _('Send email in multipart format (HTML and plain text). Uncheck to send email messages in plain text only.')
2018-11-07 06:00:21 -05:00
.form-group
= f.label :commit_email_hostname, _('Custom hostname (for private commit emails)'), class: 'label-bold'
2021-01-31 13:09:51 -05:00
= f.text_field :commit_email_hostname, class: 'form-control gl-form-input'
2018-11-07 06:00:21 -05:00
.form-text.text-muted
2020-07-03 17:09:31 -04:00
- commit_email_hostname_docs_link = link_to _('Learn more'), help_page_path('user/admin_area/settings/email.md', anchor: 'custom-hostname-for-private-commit-emails'), target: '_blank'
2021-07-23 08:09:05 -04:00
= _("Hostname used in private commit emails. %{learn_more}").html_safe % { learn_more: commit_email_hostname_docs_link }
2018-04-04 05:44:32 -04:00
2019-03-14 15:13:35 -04:00
= render_if_exists 'admin/application_settings/email_additional_text_setting', form: f
2021-02-22 10:10:48 -05:00
.form-group
.form-check
= f.check_box :in_product_marketing_emails_enabled, class: 'form-check-input'
= f.label :in_product_marketing_emails_enabled, class: 'form-check-label' do
= _('Enable in-product marketing emails')
.form-text.text-muted
2021-07-23 08:09:05 -04:00
= _('Send emails to help guide new users through the onboarding process.')
2021-02-22 10:10:48 -05:00
2021-09-07 02:11:06 -04:00
.form-group
.form-check
= f.check_box :user_deactivation_emails_enabled, class: 'form-check-input'
= f.label :user_deactivation_emails_enabled, class: 'form-check-label' do
= _('Enable user deactivation emails')
.form-text.text-muted
= _('Send emails to users upon account deactivation.')
2021-03-09 10:08:59 -05:00
= f.submit _('Save changes'), class: "gl-button btn btn-confirm", data: { qa_selector: 'save_changes_button' }