30 lines
1.1 KiB
Plaintext
30 lines
1.1 KiB
Plaintext
|
|
<table class="table" style="border-top:none">
|
|
<thead>
|
|
<tr><b><i>Batch Line Items ( <%= @result_count %> )</i></b></tr>
|
|
<tr>
|
|
<th>Serial No</th>
|
|
<th>Asset Identity</th>
|
|
<th>Manufacture UID</th>
|
|
<th>Batch No</th>
|
|
<th>Asset Type</th>
|
|
<th>Created At </th>
|
|
<th>Updated At </th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
<% @batchLineItems.each do |item| %>
|
|
<tr>
|
|
<td><%= item.serial_no rescue '' %></td>
|
|
<td><%= item.asset_identity rescue '' %></td>
|
|
<td><%= item.manufacture_uid rescue '' %></td>
|
|
<td><%= item.batch_name rescue '' %></td>
|
|
<td><%= item.asset_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 %> |