mirror of
https://github.com/internetee/registry.git
synced 2025-07-01 16:53:37 +02:00
parent
7bcc6f693f
commit
d91d304e52
2 changed files with 15 additions and 14 deletions
|
@ -1,14 +0,0 @@
|
|||
- content_for :actions do
|
||||
= link_to(t('.add_new_status_btn'), '#', 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'
|
||||
= render 'force_delete_dialog'
|
15
app/views/admin/domains/edit.html.erb
Normal file
15
app/views/admin/domains/edit.html.erb
Normal file
|
@ -0,0 +1,15 @@
|
|||
<% content_for :actions do %>
|
||||
<%= link_to t('.add_new_status_btn'), '#', class: 'btn btn-primary js-add-status' %>
|
||||
|
||||
<% if @domain.force_deletable? %>
|
||||
<%= link_to(t('.force_delete_btn'), force_delete_admin_domain_path(@domain), method: :post, data: { confirm: t(:are_you_sure) }, class: 'btn btn-warning') %>
|
||||
<% else %>
|
||||
<%= link_to(t('.cancel_force_delete_btn'), cancel_force_delete_admin_domain_path(@domain), method: :post, data: { confirm: t(:are_you_sure) }, class: 'btn btn-warning') %>
|
||||
<% end %>
|
||||
|
||||
<%= link_to t(:back_to_domain), [:admin, @domain], class: 'btn btn-default' %>
|
||||
<% end %>
|
||||
|
||||
<%= render 'shared/title', name: "#{t(:edit)}: #{@domain.name}" %>
|
||||
<%= render 'form' %>
|
||||
<%= render 'force_delete_dialog' %>
|
Loading…
Add table
Add a link
Reference in a new issue