gitlab-org--gitlab-foss/app/views/admin/application_settings/_terms.html.haml
Bob Van Landuyt cf37bef287 Add Term model to keep track of terms
That way we can link a users acceptance of terms directly to a terms record.
2018-05-04 13:52:55 +02:00

22 lines
790 B
Text

= form_for @application_setting, url: admin_application_settings_path, html: { class: 'form-horizontal fieldset-form' } do |f|
= form_errors(@application_setting)
%fieldset
.form-group
.col-sm-12
.checkbox
= f.label :enforce_terms do
= f.check_box :enforce_terms
= _("Require all users to accept Terms of Service when they access GitLab.")
.help-block
When enabled, users cannot use GitLab until the terms have been accepted.
.form-group
.col-sm-12
= f.label :terms do
= _("Terms of Service Agreement")
.col-sm-12
= f.text_area :terms, class: 'form-control', rows: 8
.help-block
Markdown enabled
= f.submit 'Save changes', class: "btn btn-success"