edit api
This commit is contained in:
28
app/views/batch_line_items/_search.html.erb
Normal file
28
app/views/batch_line_items/_search.html.erb
Normal 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 %>
|
||||
0
app/views/batch_line_items/index.csv.erb
Normal file
0
app/views/batch_line_items/index.csv.erb
Normal file
5
app/views/batch_line_items/search.js.erb
Normal file
5
app/views/batch_line_items/search.js.erb
Normal file
@@ -0,0 +1,5 @@
|
||||
<% js = escape_javascript(
|
||||
|
||||
render(partial: 'batch_line_items/search', locals: { batchLineItems: @batchLineItems })
|
||||
) %>
|
||||
$("#filterrific_results").html("<%= js %>");
|
||||
Reference in New Issue
Block a user