about summary refs log tree commit diff
path: root/app/views/admin/domain_blocks/show.html.haml
blob: b0856dd100060db29780a68e0876d977d0c5ac26 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
- content_for :page_title do
  = t('admin.domain_blocks.show.title', domain: @domain_block.domain)

= simple_form_for @domain_block, url: admin_domain_block_path(@domain_block) do |f|
  = render 'shared/error_messages', object: @domain_block

  .fields-row
    .fields-row__column.fields-row__column-6.fields-group
      = f.input :domain, wrapper: :with_label, label: t('admin.domain_blocks.domain'), required: true, disabled: true

    .fields-row__column.fields-row__column-6.fields-group
      = f.input :severity, collection: DomainBlock.severities.keys, wrapper: :with_label, include_blank: false, label_method: lambda { |type| t(".severity.#{type}") }

  .fields-group
    = f.input :force_sensitive, as: :boolean, wrapper: :with_label, label: I18n.t('admin.domain_blocks.force_sensitive'), hint: I18n.t('admin.domain_blocks.force_sensitive_hint')

  .fields-group
    = f.input :reject_unknown, as: :boolean, wrapper: :with_label, label: I18n.t('admin.domain_blocks.reject_unknown'), hint: I18n.t('admin.domain_blocks.reject_unknown_hint')

  .fields-group
    = f.input :manual_only, as: :boolean, wrapper: :with_label, label: I18n.t('admin.domain_blocks.manual_only'), hint: I18n.t('admin.domain_blocks.manual_only_hint')

  .fields-group
    = f.input :reject_media, as: :boolean, wrapper: :with_label, label: I18n.t('admin.domain_blocks.reject_media'), hint: I18n.t('admin.domain_blocks.reject_media_hint')

  .fields-group
    = f.input :reject_reports, as: :boolean, wrapper: :with_label, label: I18n.t('admin.domain_blocks.reject_reports'), hint: I18n.t('admin.domain_blocks.reject_reports_hint')

  .fields-group
    = f.input :undo, as: :boolean, wrapper: :with_label, label: I18n.t('admin.domain_blocks.undo'), hint: I18n.t('admin.domain_blocks.undo_hint')

  .fields-group
    = f.input :reason, placeholder: t('admin.domain_blocks.reason', rows: 6)

  .actions
    = f.button :button, t('.edit'), type: :submit