Commit c1318de6 authored by Daniel Tian's avatar Daniel Tian Committed by Illya Klymov

Use pajamas checkbox for appearance header and footer form

Changelog: changed
MR:
parent 93c9d34b
- parsed_with_gfm = (_("Content parsed with %{link}.") % { link: link_to('GitLab Flavored Markdown', help_page_path('user/markdown'), target: '_blank') }).html_safe - parsed_with_gfm = (_("Content parsed with %{link}.") % { link: link_to('GitLab Flavored Markdown', help_page_path('user/markdown'), target: '_blank') }).html_safe
= form_for @appearance, url: admin_application_settings_appearances_path, html: { class: 'gl-mt-3' } do |f| = gitlab_ui_form_for @appearance, url: admin_application_settings_appearances_path, html: { class: 'gl-mt-3' } do |f|
= form_errors(@appearance) = form_errors(@appearance)
......
...@@ -14,13 +14,10 @@ ...@@ -14,13 +14,10 @@
= form.label :footer_message, _('Footer message'), class: 'col-form-label label-bold' = form.label :footer_message, _('Footer message'), class: 'col-form-label label-bold'
= form.text_area :footer_message, placeholder: _('State your message to activate'), class: "form-control gl-form-input js-autosize" = form.text_area :footer_message, placeholder: _('State your message to activate'), class: "form-control gl-form-input js-autosize"
.form-group .form-group
.form-check = form.gitlab_ui_checkbox_component :email_header_and_footer_enabled,
= form.check_box :email_header_and_footer_enabled, class: 'form-check-input' _('Enable header and footer in emails'),
= form.label :email_header_and_footer_enabled, class: 'label-bold' do help_text: _('Add header and footer to emails. Please note that color settings will only be applied within the application interface'),
= _('Enable header and footer in emails') label_options: { class: 'gl-font-weight-bold!' }
.form-text.text-muted
= _('Add header and footer to emails. Please note that color settings will only be applied within the application interface')
.form-group.js-toggle-colors-container .form-group.js-toggle-colors-container
%button.btn.gl-button.btn-link.js-toggle-colors-link{ type: 'button' } %button.btn.gl-button.btn-link.js-toggle-colors-link{ type: 'button' }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment