mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 01:11:43 +02:00
Moved force delete button under statuses #2785
This commit is contained in:
parent
d524642742
commit
05bcce0669
5 changed files with 18 additions and 12 deletions
|
@ -1,6 +1,13 @@
|
|||
- content_for :actions do
|
||||
= link_to(t(:add_new_status), '#', class: 'btn btn-primary js-add-status')
|
||||
- if @domain.force_deletable?
|
||||
= link_to(t(:set_force_delete), set_force_delete_admin_domain_path(@domain),
|
||||
method: :post, data: { confirm: t(:are_you_sure) }, class: 'btn btn-warning')
|
||||
- else
|
||||
= link_to(t(:unset_force_delete), unset_force_delete_admin_domain_path(@domain),
|
||||
method: :post, data: { confirm: t(:are_you_sure) }, class: 'btn btn-warning')
|
||||
= link_to(t(:back_to_domain), [:admin, @domain], class: 'btn btn-default')
|
||||
|
||||
= render 'shared/title', name: "#{t(:edit)}: #{@domain.name}"
|
||||
|
||||
= render 'form'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue