summaryrefslogtreecommitdiff
path: root/app/views/admin/application_settings/_terms.html.haml
blob: fdf79004c4521d774f234dbf763c1801f8746100 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
= form_for @application_setting, url: general_admin_application_settings_path(anchor: 'js-terms-settings'), html: { class: 'fieldset-form', id: 'terms-settings' } do |f|
  = form_errors(@application_setting)

  %fieldset
    .form-group
      .form-check
        = f.check_box :enforce_terms, class: 'form-check-input'
        = f.label :enforce_terms, class: 'form-check-label' do
          = _("All users must accept the Terms of Service and Privacy Policy to access GitLab")
        .form-text.text-muted
    .form-group
      = f.label :terms do
        = _("Terms of Service Agreement and Privacy Policy")
      = f.text_area :terms, class: 'form-control gl-form-input', rows: 8
      .form-text.text-muted
        = _("Markdown supported.")
        = link_to _('What is Markdown?'), help_page_path('user/markdown.md'), target: '_blank', rel: 'noopener noreferrer'
  = f.submit _("Save changes"), class: "gl-button btn btn-confirm"