This commit is contained in:
Sunandar
2017-02-07 18:04:20 +06:30
parent 264debf89a
commit 321ef2ea21
4 changed files with 33 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
<table class="table" style="border-top:none">
<thead>
<tr>
<th>Serail No</th>
<th>Wristband Code</th>
<th>Manufacture UID</th>
<th>Batch No</th>
<th>Card Type</th>
<th>Created At </th>
<th>Update At </th>
</tr>
</thead>
<tbody>
<% @batchLineItems.each do |item| %>
<tr>
<td><%= item.serial_no rescue '' %></td>
<td><%= item.wristband_code rescue '' %></td>
<td><%= item.manufacture_uid rescue '' %></td>
<td><%= item.batch_name rescue '' %></td>
<td><%= item.card_type rescue '' %></td>
<td><%= item.created_at.strftime("%e,%b %Y %I:%M %p") rescue '' %></td>
<td><%= item.updated_at.strftime("%e,%b %Y %I:%M %p") rescue '' %></td>
</tr>
<% end %>
</tbody>
</table>
<%=paginate @batchLineItems %>

View File

View File

@@ -0,0 +1,5 @@
<% js = escape_javascript(
render(partial: 'batch_line_items/search', locals: { batchLineItems: @batchLineItems })
) %>
$("#filterrific_results").html("<%= js %>");