68 lines
1.9 KiB
Plaintext
68 lines
1.9 KiB
Plaintext
<div class="row">
|
|
<div class="col-lg-12">
|
|
<ol class="breadcrumb">
|
|
<li><a href="<%= crm_root_path %>">Home</a></li>
|
|
<li class="active">
|
|
<a href="<%= transactions_orders_path %>">Order</a>
|
|
</li>
|
|
|
|
</ol>
|
|
</div>
|
|
</div>
|
|
<hr>
|
|
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
<div class="main-box-body clearfix">
|
|
<div class="table-responsive">
|
|
<table class="table table-striped">
|
|
<thead>
|
|
<tr>
|
|
<td colspan="6">
|
|
<%= form_tag transactions_orders_path, :method => :get do %>
|
|
<div class="input-append form-group pull-right">
|
|
<input type="text" name="filter" placeholder="Order ID" class="form-control input-sm col-md-8">
|
|
<button type="submit" class="btn btn-primary btn-sm">Search</button>
|
|
</div>
|
|
<% end %>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Order ID </th>
|
|
<th>Type</th>
|
|
<th>Customer</th>
|
|
<th>Order status</th>
|
|
<th>Order date</th>
|
|
<th>Items Count</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<% @orders.each do |order| %>
|
|
|
|
<tr>
|
|
<td><%= link_to order.order_id, transactions_order_path(order) %></td>
|
|
<td><%= order.order_type %></td>
|
|
<td><%= order.customer.name rescue '-' %></td>
|
|
<td><%= order.status %></td>
|
|
<td> <%= order.date.strftime("%d-%m-%Y") %> </td>
|
|
<td> <%= order.item_count %> </td>
|
|
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
<br>
|
|
|
|
<%= paginate @orders %>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|