show.html.haml 1.6 KB

123456789101112131415161718192021222324252627282930313233
  1. - content_for :page_title do
  2. = t('admin.settings.about.title')
  3. - content_for :heading do
  4. %h2= t('admin.settings.title')
  5. = render partial: 'admin/settings/shared/links'
  6. = simple_form_for @admin_settings, url: admin_settings_about_path, html: { method: :patch } do |f|
  7. = render 'shared/error_messages', object: @admin_settings
  8. %p.lead= t('admin.settings.about.preamble')
  9. .fields-group
  10. = f.input :site_extended_description, wrapper: :with_block_label, as: :text, input_html: { rows: 8 }
  11. %p.hint
  12. = t 'admin.settings.about.rules_hint'
  13. = link_to t('admin.settings.about.manage_rules'), admin_rules_path
  14. .fields-row
  15. .fields-row__column.fields-row__column-6.fields-group
  16. = f.input :show_domain_blocks, wrapper: :with_label, collection: %i(disabled users all), label_method: ->(value) { t("admin.settings.domain_blocks.#{value}") }, include_blank: false, collection_wrapper_tag: 'ul', item_wrapper_tag: 'li'
  17. .fields-row__column.fields-row__column-6.fields-group
  18. = f.input :show_domain_blocks_rationale, wrapper: :with_label, collection: %i(disabled users all), label_method: ->(value) { t("admin.settings.domain_blocks.#{value}") }, include_blank: false, collection_wrapper_tag: 'ul', item_wrapper_tag: 'li'
  19. .fields-group
  20. = f.input :status_page_url, wrapper: :with_block_label, input_html: { placeholder: "https://status.#{Rails.configuration.x.local_domain}" }
  21. .fields-group
  22. = f.input :site_terms, wrapper: :with_block_label, as: :text, input_html: { rows: 8 }
  23. .actions
  24. = f.button :button, t('generic.save_changes'), type: :submit