Hold usable value lists in admin settings form (#36268)
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
.fields-row__column.fields-row__column-6.fields-group
|
||||
= f.input :show_domain_blocks,
|
||||
collection_wrapper_tag: 'ul',
|
||||
collection: %i(disabled users all),
|
||||
collection: f.object.class::DOMAIN_BLOCK_AUDIENCES,
|
||||
include_blank: false,
|
||||
item_wrapper_tag: 'li',
|
||||
label_method: ->(value) { t("admin.settings.domain_blocks.#{value}") },
|
||||
@@ -32,7 +32,7 @@
|
||||
.fields-row__column.fields-row__column-6.fields-group
|
||||
= f.input :show_domain_blocks_rationale,
|
||||
collection_wrapper_tag: 'ul',
|
||||
collection: %i(disabled users all),
|
||||
collection: f.object.class::DOMAIN_BLOCK_AUDIENCES,
|
||||
include_blank: false,
|
||||
item_wrapper_tag: 'li',
|
||||
label_method: ->(value) { t("admin.settings.domain_blocks.#{value}") },
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
.fields-row
|
||||
.fields-row__column.fields-row__column-6.fields-group
|
||||
= f.input :registrations_mode,
|
||||
collection: %w(open approved none),
|
||||
collection: f.object.class::REGISTRATION_MODES,
|
||||
include_blank: false,
|
||||
label_method: ->(mode) { I18n.t("admin.settings.registrations_mode.modes.#{mode}") },
|
||||
warning_hint: I18n.t('admin.settings.registrations_mode.warning_hint'),
|
||||
|
||||
Reference in New Issue
Block a user