mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 17:28:18 +02:00
Add mass actions w/ force delete to admin
This commit is contained in:
parent
7a6568c34a
commit
c72ca8d157
8 changed files with 76 additions and 3 deletions
|
@ -33,6 +33,7 @@
|
|||
%li= link_to t('.blocked_domains'), admin_blocked_domains_path
|
||||
%li= link_to t('.reserved_domains'), admin_reserved_domains_path
|
||||
%li= link_to t('.disputed_domains'), admin_disputes_path
|
||||
%li= link_to t('.mass_actions'), admin_mass_actions_path
|
||||
%li= link_to t('.epp_log'), admin_epp_logs_path(created_after: 'today')
|
||||
%li= link_to t('.repp_log'), admin_repp_logs_path(created_after: 'today')
|
||||
%li= link_to t('.que'), '/admin/que'
|
||||
|
|
17
app/views/admin/mass_actions/index.html.erb
Normal file
17
app/views/admin/mass_actions/index.html.erb
Normal file
|
@ -0,0 +1,17 @@
|
|||
<div class="page-header">
|
||||
<h1>Mass actions</h1>
|
||||
</div>
|
||||
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">Bulk Domain Force Delete</div>
|
||||
<div class="panel-body">
|
||||
<p>Triggers <b>soft</b> force delete procedure for uploaded domain list. List must be in <b>CSV</b> format. Each domain entry must be on separate line. Line must include <b>domain name</b> with <b>delete reason</b>, separated by comma.</p>
|
||||
<p>Allowed delete reasons: <b>IDENT_BURIED</b> | <b>PHONE</b> | <b>EMAIL</b></p>
|
||||
<%= form_tag admin_mass_actions_path, multipart: true do %>
|
||||
<%= file_field_tag :entry_list, accept: 'text/csv' %>
|
||||
<%= hidden_field_tag :mass_action, 'force_delete' %>
|
||||
<br>
|
||||
<%= submit_tag "Start force delete process", class: 'btn btn-danger', disabled: true %>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue