inventory development

This commit is contained in:
Nweni
2017-08-28 09:37:36 +06:30
parent 6aaea69f0a
commit 83ec17a3df
16 changed files with 200 additions and 46 deletions

View File

@@ -1,25 +1,53 @@
<p id="notice"><%= notice %></p>
<div class="row">
<div class="col-md-6">
<div class="row">
<div class="col-md-12">
<button class="btn btn-primary pull-right" style='margin-bottom:2px;'> Finish </button>
</div>
</div>
<div class="row">
<div class="col-md-12">
<table class="table table-striped">
<tr>
<th>#</th>
<th>Product</th>
<th>Balance</th>
</tr>
</table>
</div>
</div>
<hr>
<div class="row">
<div class="col-md-7">
<input type='text' class='form-control' placeholder="Product Name"></input>
</div>
<div class="col-md-3">
<input type='text' class='form-control' placeholder="Qty"></input>
</div>
<h1>Stock Checks</h1>
<div class="col-md-2">
<button class="btn btn-primary"> Save </button>
</div>
</div>
</div>
<table>
<thead>
<tr>
<th colspan="3"></th>
</tr>
</thead>
<tbody>
<% @stock_checks.each do |stock_check| %>
<tr>
<td><%= link_to 'Show', stock_check %></td>
<td><%= link_to 'Edit', edit_stock_check_path(stock_check) %></td>
<td><%= link_to 'Destroy', stock_check, method: :delete, data: { confirm: 'Are you sure?' } %></td>
</tr>
<% end %>
</tbody>
</table>
<br>
<%= link_to 'New Stock Check', new_stock_check_path %>
<div class="col-md-6">
<div class="row">
<div class="col-md-12">
<table class="table table-striped">
<tr>
<th>#</th>
<th>Product</th>
<th>Balance</th>
<th>Different</th>
</tr>
</table>
</div>
</div>
<div class="row">
<div class="col-md-12">
<button class="btn btn-primary"> Save to journal</button>
</div>
</div>
</div>
</div>