inventory setup

This commit is contained in:
Nweni
2017-08-24 18:04:42 +06:30
parent 688ce932cc
commit 81f430b5c6
97 changed files with 1699 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
<%= simple_form_for(@stock_check_item) do |f| %>
<%= f.error_notification %>
<div class="form-inputs">
</div>
<div class="form-actions">
<%= f.button :submit %>
</div>
<% end %>

View File

@@ -0,0 +1,2 @@
json.extract! stock_check_item, :id, :created_at, :updated_at
json.url stock_check_item_url(stock_check_item, format: :json)

View File

@@ -0,0 +1,6 @@
<h1>Editing Stock Check Item</h1>
<%= render 'form', stock_check_item: @stock_check_item %>
<%= link_to 'Show', @stock_check_item %> |
<%= link_to 'Back', stock_check_items_path %>

View File

@@ -0,0 +1,25 @@
<p id="notice"><%= notice %></p>
<h1>Stock Check Items</h1>
<table>
<thead>
<tr>
<th colspan="3"></th>
</tr>
</thead>
<tbody>
<% @stock_check_items.each do |stock_check_item| %>
<tr>
<td><%= link_to 'Show', stock_check_item %></td>
<td><%= link_to 'Edit', edit_stock_check_item_path(stock_check_item) %></td>
<td><%= link_to 'Destroy', stock_check_item, method: :delete, data: { confirm: 'Are you sure?' } %></td>
</tr>
<% end %>
</tbody>
</table>
<br>
<%= link_to 'New Stock Check Item', new_stock_check_item_path %>

View File

@@ -0,0 +1 @@
json.array! @stock_check_items, partial: 'stock_check_items/stock_check_item', as: :stock_check_item

View File

@@ -0,0 +1,5 @@
<h1>New Stock Check Item</h1>
<%= render 'form', stock_check_item: @stock_check_item %>
<%= link_to 'Back', stock_check_items_path %>

View File

@@ -0,0 +1,4 @@
<p id="notice"><%= notice %></p>
<%= link_to 'Edit', edit_stock_check_item_path(@stock_check_item) %> |
<%= link_to 'Back', stock_check_items_path %>

View File

@@ -0,0 +1 @@
json.partial! "stock_check_items/stock_check_item", stock_check_item: @stock_check_item