summaryrefslogtreecommitdiffstats
path: root/data/templates/products/inventory.html
diff options
context:
space:
mode:
authorSebastian Reichel <sre@ring0.de>2018-08-31 00:31:08 +0200
committerGitHub <noreply@github.com>2018-08-31 00:31:08 +0200
commit684e9dd1ef04301287e99590254e71907e67f785 (patch)
treec008d2878905e03df7a8bf8bd3330762cc2d8f43 /data/templates/products/inventory.html
parent3fc3ea6c6df237dbdf48d14703118b747bf5d647 (diff)
parent8f2ba2050ee78d0e4a47f1277c6bc4422d06170c (diff)
downloadserial-barcode-scanner-684e9dd1ef04301287e99590254e71907e67f785.tar.bz2
Merge pull request #43 from smilix/better_inventory
Better inventory
Diffstat (limited to 'data/templates/products/inventory.html')
-rw-r--r--data/templates/products/inventory.html49
1 files changed, 49 insertions, 0 deletions
diff --git a/data/templates/products/inventory.html b/data/templates/products/inventory.html
new file mode 100644
index 0000000..eb02081
--- /dev/null
+++ b/data/templates/products/inventory.html
@@ -0,0 +1,49 @@
+<h1>Inventory <small>Thanks that you do it! </small></h1>
+
+<div class="{{{SUCESS_HIDDEN}}} alert alert-success">
+ <strong>Success!</strong> Every change was added. Thank you!
+</div>
+
+<div class="alert alert-info">
+ <strong>Tip!</strong> You can download an inventory PDF to collect the data offline.
+ <a href="/products/inventory-pdf" target="_blank" class="btn btn-primary">Only products with amount > 0</a>
+ <a href="/products/inventory-pdf?all=1" target="_blank" class="btn btn-primary">All products</a>
+</div>
+
+<form action="/products/inventory" method="POST" class="form-horizontal">
+ <div class="{{{RESTOCK_HIDDEN}}} form-group">
+ <label class="control-label col-sm-3">Select the supplier for the restock action.</label>
+ <div class="col-sm-3">
+ <select name="supplierId" class="form-control">
+ {{{SUPPLIERS}}}
+ </select>
+ </div>
+ </div>
+ <div class="{{{RESTOCK_HIDDEN}}} form-group">
+ <label class="control-label col-sm-3">Select the Shop User for loss transaction.</label>
+ <div class="col-sm-3">
+ <select name="userId" class="form-control">
+ {{{USERS}}}
+ </select>
+ </div>
+ </div>
+ <table class="sortable table table-bordered table-striped table-condensed">
+ <thead>
+ <tr>
+ <th>EAN</th>
+ <th>Name</th>
+ <th>Category</th>
+ <th>Expected Amount</th>
+ <th>Real Amount</th>
+ </tr>
+ </thead>
+ <tbody>
+ {{{DATA}}}
+ </tbody>
+ </table>
+
+ <div class="pull-right">
+ {{{ACTION}}}
+ </div>
+
+</form> \ No newline at end of file