update bug sale

This commit is contained in:
Aung Myo
2017-06-16 18:04:39 +06:30
parent cd804a3d18
commit cb43afc405
6 changed files with 116 additions and 64 deletions

View File

@@ -34,7 +34,6 @@
<th>Order status</th>
<th>Order date</th>
<th>Items Count</th>
<th>Action</th>
</tr>
</thead>
@@ -42,13 +41,13 @@
<% @orders.each do |order| %>
<tr>
<td><%= order.order_id %></td>
<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>
<td><%= link_to 'Show', transactions_order_path(order) %></td>
</tr>
<% end %>
</tbody>

View File

@@ -14,7 +14,7 @@
<hr>
<div class="row">
<div class="col-lg-12">
<div class="col-lg-11 col-md-11 col-sm-11">
<div class="main-box-body clearfix">
<div class="table-responsive">
<table class="table table-striped">
@@ -70,13 +70,16 @@
<% end %>
</tbody>
</table>
<a href="<%= transactions_orders_path%>" class="btn btn-primary pull-left">
<i class="fa fa-arrow-left fa-xs"></i> Back
</a>
</div>
</div>
</div>
<div class="col-lg-1 col-md-1 col-sm-1">
<a href="<%= transactions_orders_path%>" class="btn btn-primary">
<i class="fa fa-arrow-left fa-xs"></i> Back
</a>
</div>
</div>