<%= form_tag export_path(:format => :csv),:method => :post do%>
<%= select_tag "client", options_from_collection_for_select(@clients, "id", "name"), :class => 'form-control'%>
<%= select_tag "product_category", options_from_collection_for_select(@product_categories, "id", "name"), :class => 'form-control'%>

<%= button_tag "Export csv?",:class =>'btn btn-primary btn-sm',:id =>"btnexport" %>

<% end %>
Batch Line Item List
<% flash.each do |key, value| %> <% if key =='message' %>
× <%= value %> <% end %>
<% end %>
Batch Line Items ( <%= @result_count %> ) <% @batchLineItems.each do |item| %> <% end %>
Serial No Asset Identity Manufacture UID Batch No Barcode Created At Updated At
<%= item.serial_no rescue '' %> <%= item.asset_identity rescue '' %> <%= item.manufacture_uid rescue '' %> <%= item.batch_name rescue '' %> <%= item.barcode rescue '' %> <%= item.created_at.strftime("%e,%b %Y %I:%M %p") rescue '' %> <%= item.updated_at.strftime("%e,%b %Y %I:%M %p") rescue '' %>
<%=paginate @batchLineItems %>