mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 08:52:04 +02:00
Added csv export to registrar api_users and white_ips
This commit is contained in:
parent
316f00cadc
commit
0f16ec77f5
11 changed files with 104 additions and 6 deletions
|
@ -1,4 +1,4 @@
|
|||
<div class="panel panel-default">
|
||||
<div class="panel panel-default api_users">
|
||||
<div class="panel-heading">
|
||||
<%= t '.header' %>
|
||||
</div>
|
||||
|
@ -15,7 +15,7 @@
|
|||
<tbody>
|
||||
<% registrar.api_users.each do |api_user| %>
|
||||
<tr>
|
||||
<td><%= link_to api_user, admin_registrar_api_user_path(api_user.registrar, api_user) %></td>
|
||||
<td><%= link_to api_user, admin_registrar_api_user_path(registrar, api_user) %></td>
|
||||
<td><%= api_user.active %></td>
|
||||
<td>
|
||||
|
||||
|
@ -37,5 +37,7 @@
|
|||
<div class="panel-footer text-right">
|
||||
<%= link_to t('.new_btn'), new_admin_registrar_api_user_path(registrar),
|
||||
class: 'btn btn-default btn-xs' %>
|
||||
<%= link_to 'Export to CSV', export_admin_registrar_path(registrar, records: 'api_users', format: :csv),
|
||||
class: 'btn btn-default btn-xs' if registrar.api_users.any? %>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<div class="panel panel-default">
|
||||
<div class="panel panel-default white_ips">
|
||||
<div class="panel-heading">
|
||||
<%= t '.header' %>
|
||||
</div>
|
||||
|
@ -34,5 +34,7 @@
|
|||
<div class="panel-footer text-right">
|
||||
<%= link_to t('.new_btn'), new_admin_registrar_white_ip_path(registrar),
|
||||
class: 'btn btn-default btn-xs' %>
|
||||
<%= link_to 'Export to CSV', export_admin_registrar_path(registrar, records: 'white_ips', format: :csv),
|
||||
class: 'btn btn-default btn-xs' if registrar.white_ips.any? %>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue