Skip to content
Snippets Groups Projects

In-app awareness of Registration Features - Group access by IP address

All threads resolved!
4 files
+ 24
23
Compare changes
  • Side-by-side
  • Inline
Files
4
- hidden_input_id = 'group_ip_restriction_ranges'
- label_id = "#{hidden_input_id}_label"
.form-group
%label{ id: label_id }
= _('Allow access to the following IP addresses')
- if ip_restriction_feature_available?(group) && !group.parent_id.present?
= render_if_exists 'groups/settings/ip_restriction', hidden_input_id: hidden_input_id, label_id: label_id, f: f, group: @group
- else
= text_field_tag :disabled_ip_restriction_ranges, nil, class: 'form-control gl-form-input', disabled: true
%span.form-text.text-muted
= render 'shared/registration_features_discovery_message', license: @license
Loading