internetee/registry

View on GitHub
app/views/admin/domains/form/_pending_delete.haml

Summary

Maintainability
Test Coverage
- if status == DomainStatus::PENDING_DELETE_CONFIRMATION
  = link_to(t('.accept_btn'), admin_domain_pending_delete_path(f.object.id, f.object.id),
    method: :patch, data: { confirm: t(:are_you_sure) },
    class: 'btn btn-danger btn-xs')

  = link_to(t('.reject_btn'), admin_domain_pending_delete_path(f.object.id, f.object.id),
    method: :delete, data: { confirm: t(:are_you_sure) },
    class: 'btn btn-danger btn-xs')