mirror of
https://github.com/internetee/registry.git
synced 2025-08-02 16:02:03 +02:00
Add full request JSON to bounced mail, remove unused views
This commit is contained in:
parent
6af37a787d
commit
834b2c95bc
10 changed files with 31 additions and 90 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('.bounced_email_addresses'), admin_bounced_mail_addresses_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'
|
||||
|
|
|
@ -1,37 +0,0 @@
|
|||
<%= form_for([:admin, @bounced_mail_address], html: { class: 'form-horizontal' }) do |form| %>
|
||||
<% if @bounced_mail_address.errors.any? %>
|
||||
<div id="error_explanation">
|
||||
<h2><%= pluralize(bounced_mail_address.errors.count, "error") %> prohibited this bounced_mail_address from being saved:</h2>
|
||||
|
||||
<ul>
|
||||
<% @bounced_mail_address.errors.full_messages.each do |message| %>
|
||||
<li><%= message %></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<div class="field">
|
||||
<%= form.label :email %>
|
||||
<%= form.text_field :email %>
|
||||
</div>
|
||||
|
||||
<div class="field">
|
||||
<%= form.label :bounce_reason %>
|
||||
<%= form.text_field :bounce_reason %>
|
||||
</div>
|
||||
|
||||
<div class="field">
|
||||
<%= form.label :incidents %>
|
||||
<%= form.number_field :incidents %>
|
||||
</div>
|
||||
|
||||
<div class="field">
|
||||
<%= form.label :response_json %>
|
||||
<%= form.text_field :response_json %>
|
||||
</div>
|
||||
|
||||
<div class="actions">
|
||||
<%= form.submit %>
|
||||
</div>
|
||||
<% end %>
|
|
@ -1,6 +0,0 @@
|
|||
<h1>Editing Bounced Mail Address</h1>
|
||||
|
||||
<%= render 'form', bounced_mail_address: @bounced_mail_address %>
|
||||
|
||||
<%= link_to 'Show', admin_bounced_mail_address_path(@bounced_mail_address)%> |
|
||||
<%= link_to 'Back', admin_bounced_mail_addresses_path %>
|
|
@ -1,5 +0,0 @@
|
|||
<h1>New Bounced Mail Address</h1>
|
||||
|
||||
<%= render 'form', bounced_mail_address: @bounced_mail_address %>
|
||||
|
||||
<%= link_to 'Back', admin_bounced_mail_addresses_path %>
|
|
@ -16,9 +16,13 @@
|
|||
</p>
|
||||
|
||||
<p>
|
||||
<strong>Response json:</strong>
|
||||
<%= @bounced_mail_address.response_json %>
|
||||
<strong>Bounced recipient JSON:</strong>
|
||||
<pre><%= JSON.pretty_generate(@bounced_mail_address.recipient_json) %></pre>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<strong>Bounce payload:</strong>
|
||||
<pre><%= JSON.pretty_generate(@bounced_mail_address.response_json) %></pre>
|
||||
</p>
|
||||
|
||||
<%= link_to 'Edit', edit_admin_bounced_mail_address_path(@bounced_mail_address) %> |
|
||||
<%= link_to 'Back', admin_bounced_mail_addresses_path %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue