You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.8 KiB
44 lines
1.8 KiB
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Postal Mail Reports</title>
|
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
<%= csrf_meta_tags %>
|
|
<%= csp_meta_tag %>
|
|
|
|
<%= stylesheet_link_tag "application" %>
|
|
<%= javascript_importmap_tags %>
|
|
</head>
|
|
|
|
<body>
|
|
<nav class="navbar easypush-nav justify-content-between p-2">
|
|
<a class="navbar-brand" href="/messages"> <%= image_tag "mail-report.svg", size: "38" %>Delivery Reports</a>
|
|
<div class="container">
|
|
<%= form_with url: "/messages", class: "form-inline" , method: :get do |form| %>
|
|
<div class="row">
|
|
<div class="input-group ">
|
|
<div class="input-group-prepend">
|
|
<span class="input-group-text">From Date</span>
|
|
</div>
|
|
<%= form.date_field :date_from , class: "form-control me-1" %>
|
|
<div class="input-group-prepend">
|
|
<span class="input-group-text">To Date</span>
|
|
</div>
|
|
<%= form.date_field :date_to , class: "form-control me-1 " %>
|
|
<%= form.email_field :mail_from, placeholder: "From Address", class: "form-control me-1 " %>
|
|
<%= form.email_field :rcpt_to , placeholder: "To Address", class: "form-control me-1 " %>
|
|
<div class="input-group-prepend">
|
|
<span class="input-group-text">Status</span>
|
|
</div>
|
|
<%= form.select :status , ['All', 'Sent','SoftFail', 'HardFail','Held'], class: " form-control custom-select dropdown-menu me-1" %>
|
|
<%= form.submit "Search" , class: "btn btn-primary ms-1"%>
|
|
</div>
|
|
</div>
|
|
<% end %>
|
|
<%= link_to '<button type="button" class="btn btn-primary">Download Report</button>'.html_safe , :action => :export %>
|
|
</div>
|
|
</nav>
|
|
|
|
<%= yield %>
|
|
</body>
|
|
</html>
|
|
|