show.html.haml 1.7 KB

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