File: _remove_dormant_members.html.haml

package info (click to toggle)
gitlab 17.6.5-19
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 629,368 kB
  • sloc: ruby: 1,915,304; javascript: 557,307; sql: 60,639; xml: 6,509; sh: 4,567; makefile: 1,239; python: 406
file content (18 lines) | stat: -rw-r--r-- 1,105 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
- return unless ::Feature.enabled?(:group_remove_dormant_members, @group)
- return unless @group.root?

.form-group
  = f.label :remove_dormant_members, _('Dormant members'), class: 'label-bold'
  = f.gitlab_ui_checkbox_component :remove_dormant_members,
    _('Remove dormant members after a period of inactivity'),
    help_text: _('Removed members no longer have access to this top-level group, its sub-groups, and their projects.'),
    checkbox_options: { checked: group.namespace_settings&.remove_dormant_members }
  .form-group
    = f.label :remove_dormant_members_period, _('Days of inactivity before removal'), class: 'label-light'
    = f.number_field :remove_dormant_members_period, class: 'form-control w-auto gl-form-input', min: 90,
      required: true, value: group.namespace_settings&.remove_dormant_members_period,
      disabled: !group.namespace_settings&.remove_dormant_members?
    #group_remove_dormant_members_period_error.form-text.gl-text-red-500.gl-hidden
      = _('Please enter a value of 90 days or more')
    .form-text.gl-text-subtle
      = _('Must be 90 days or more.')