2017-10-05 00:16:10 +11:00
|
|
|
- content_for :page_title do
|
|
|
|
= t('.title')
|
|
|
|
|
|
|
|
= simple_form_for @email_domain_block, url: admin_email_domain_blocks_path do |f|
|
|
|
|
= render 'shared/error_messages', object: @email_domain_block
|
|
|
|
|
2018-09-19 00:45:58 +10:00
|
|
|
.fields-group
|
2024-03-15 22:19:00 +11:00
|
|
|
= f.input :domain,
|
|
|
|
input_html: { readonly: defined?(@resolved_records) },
|
|
|
|
label: t('admin.email_domain_blocks.domain'),
|
|
|
|
wrapper: :with_block_label
|
2020-03-13 08:35:20 +11:00
|
|
|
|
2024-01-04 20:07:05 +11:00
|
|
|
.fields-group
|
2024-03-15 22:19:00 +11:00
|
|
|
= f.input :allow_with_approval,
|
|
|
|
hint: false,
|
|
|
|
label: I18n.t('admin.email_domain_blocks.allow_registrations_with_approval'),
|
|
|
|
wrapper: :with_label
|
2024-01-04 20:07:05 +11:00
|
|
|
|
2024-10-01 21:03:13 +10:00
|
|
|
- if defined?(@resolved_records) && @resolved_records.any?
|
2022-02-25 03:28:23 +11:00
|
|
|
%p.hint= t('admin.email_domain_blocks.resolved_dns_records_hint_html')
|
|
|
|
|
|
|
|
.batch-table
|
|
|
|
.batch-table__toolbar
|
|
|
|
%label.batch-table__toolbar__select.batch-checkbox-all
|
|
|
|
= check_box_tag :batch_checkbox_all, nil, false
|
|
|
|
.batch-table__toolbar__actions
|
|
|
|
.batch-table__body
|
|
|
|
- @resolved_records.each do |record|
|
|
|
|
.batch-table__row
|
|
|
|
%label.batch-table__row__select.batch-table__row__select--aligned.batch-checkbox
|
2024-03-15 22:19:00 +11:00
|
|
|
= f.input_field :other_domains,
|
|
|
|
as: :boolean,
|
|
|
|
checked_value: record.exchange.to_s,
|
|
|
|
include_hidden: false,
|
|
|
|
multiple: true
|
2022-02-25 03:28:23 +11:00
|
|
|
.batch-table__row__content.pending-account
|
|
|
|
.pending-account__header
|
|
|
|
%samp= record.exchange.to_s
|
|
|
|
%br
|
|
|
|
= t('admin.email_domain_blocks.dns.types.mx')
|
|
|
|
|
|
|
|
%hr.spacer/
|
2017-10-05 00:16:10 +11:00
|
|
|
|
|
|
|
.actions
|
2022-02-25 03:28:23 +11:00
|
|
|
- if defined?(@resolved_records)
|
|
|
|
= f.button :button, t('.create'), type: :submit, name: :save
|
|
|
|
- else
|
|
|
|
= f.button :button, t('.resolve'), type: :submit, name: :resolve
|