mirror of
https://github.com/internetee/registry.git
synced 2025-07-24 11:38:30 +02:00
Admin pendings refactored, added delete pending managament #2785
This commit is contained in:
parent
07e4c0cd96
commit
714a36f34c
11 changed files with 62 additions and 46 deletions
8
app/views/admin/domains/form/_pending_delete.haml
Normal file
8
app/views/admin/domains/form/_pending_delete.haml
Normal file
|
@ -0,0 +1,8 @@
|
|||
- if (status == DomainStatus::PENDING_DELETE && f.object.pending_json.present?)
|
||||
= link_to(t(:apply_pending), 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(:delete_pending), 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')
|
|
@ -1,8 +1,8 @@
|
|||
- if (status == DomainStatus::PENDING_UPDATE && f.object.pending_json.present?)
|
||||
= link_to(t(:apply_pending), admin_domain_pending_path(f.object.id, f.object.id),
|
||||
= link_to(t(:apply_pending), admin_domain_pending_update_path(f.object.id, f.object.id),
|
||||
method: :patch, data: { confirm: t(:are_you_sure) },
|
||||
class: 'btn btn-danger btn-xs')
|
||||
|
||||
= link_to(t(:delete_pending), admin_domain_pending_path(f.object.id, f.object.id),
|
||||
= link_to(t(:delete_pending), admin_domain_pending_update_path(f.object.id, f.object.id),
|
||||
method: :delete, data: { confirm: t(:are_you_sure) },
|
||||
class: 'btn btn-danger btn-xs')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue