_account_and_limit.html.haml 3.05 KB
Newer Older
1
= form_for @application_setting, url: general_admin_application_settings_path(anchor: 'js-account-settings'), html: { class: 'fieldset-form' } do |f|
2
3
  = form_errors(@application_setting)

4
  %fieldset
5
6
7
8
    .form-group
      .form-check
        = f.check_box :gravatar_enabled, class: 'form-check-input'
        = f.label :gravatar_enabled, class: 'form-check-label' do
9
          = _('Gravatar enabled')
10
    .form-group
11
      = f.label :default_projects_limit, class: 'label-bold'
12
13
      = f.number_field :default_projects_limit, class: 'form-control'
    .form-group
14
      = f.label :max_attachment_size, _('Maximum attachment size (MB)'), class: 'label-bold'
15
      = f.number_field :max_attachment_size, class: 'form-control'
16
17
18

    = render_if_exists 'admin/application_settings/repository_size_limit_setting', form: f

19
    .form-group
20
      = f.label :receive_max_input_size, _('Maximum push size (MB)'), class: 'label-light'
Mesut Güneş's avatar
Mesut Güneş committed
21
      = f.number_field :receive_max_input_size, class: 'form-control qa-receive-max-input-size-field'
22
    .form-group
23
      = f.label :session_expire_delay, _('Session duration (minutes)'), class: 'label-light'
24
      = f.number_field :session_expire_delay, class: 'form-control'
25
      %span.form-text.text-muted#session_expire_delay_help_block= _('GitLab restart is required to apply changes')
26
27
28

    = render_if_exists 'admin/application_settings/personal_access_token_expiration_policy', form: f

29
    .form-group
30
      = f.label :user_oauth_applications, _('User OAuth applications'), class: 'label-bold'
31
32
33
      .form-check
        = f.check_box :user_oauth_applications, class: 'form-check-input'
        = f.label :user_oauth_applications, class: 'form-check-label' do
34
          = _('Allow users to register any application to use GitLab as an OAuth provider')
35
    .form-group
36
      = f.label :user_default_external, _('New users set to external'), class: 'label-bold'
37
38
39
      .form-check
        = f.check_box :user_default_external, class: 'form-check-input'
        = f.label :user_default_external, class: 'form-check-label' do
40
          = _('Newly registered users will by default be external')
41
42
43
44
45
46
47
      .prepend-top-10
        = _('Internal users')
      = f.text_field :user_default_internal_regex, placeholder: _('Regex pattern'), class: 'form-control prepend-top-5'
      .help-block
        = _('Specify an e-mail address regex pattern to identify default internal users.')
        = link_to _('More information'), help_page_path('user/permissions', anchor: 'external-users-permissions'),
          target: '_blank'
48
    .form-group
49
      = f.label :user_show_add_ssh_key_message, _('Prompt users to upload SSH keys'), class: 'label-bold'
50
51
52
      .form-check
        = f.check_box :user_show_add_ssh_key_message, class: 'form-check-input'
        = f.label :user_show_add_ssh_key_message, class: 'form-check-label' do
53
54
55
          = _("Inform users without uploaded SSH keys that they can't push over SSH until one is added")

    = render_if_exists 'admin/application_settings/availability_on_namespace_setting', form: f
56

57
  = f.submit _('Save changes'), class: 'btn btn-success qa-save-changes-button'