glitch-soc/mastodon

View on GitHub
app/views/admin/terms_of_service/generates/show.html.haml

Summary

Maintainability
Test Coverage
- content_for :page_title do
  = t('admin.terms_of_service.generates.title')

- content_for :heading_actions do
  .back-link
    = link_to admin_terms_of_service_index_path do
      = material_symbol 'chevron_left'
      = t('admin.terms_of_service.back')

%p.lead= t('admin.terms_of_service.generates.explanation_html')

%p.lead= t('admin.terms_of_service.generates.chance_to_review_html')

%hr.spacer/

= simple_form_for @generator, url: admin_terms_of_service_generate_path, method: :post do |form|
  = render 'shared/error_messages', object: @generator

  .fields-group
    = form.input :domain, wrapper: :with_label

  .fields-group
    = form.input :jurisdiction, wrapper: :with_label

  .fields-group
    = form.input :admin_email, wrapper: :with_label

  .fields-group
    = form.input :dmca_email, wrapper: :with_label

  .fields-group
    = form.input :dmca_address, wrapper: :with_label

  .fields-group
    = form.input :arbitration_address, wrapper: :with_label

  .fields-group
    = form.input :arbitration_website, wrapper: :with_label

  .actions
    = form.button :button, t('admin.terms_of_service.generates.action'), type: :submit