summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorSebastian Reichel <sre@ring0.de>2013-03-02 01:02:26 +0100
committerSebastian Reichel <sre@ring0.de>2013-03-02 01:02:26 +0100
commita2c2a4b9e6a2dbbf103e989bebb507f4340d71e7 (patch)
tree3b7dff021c88c68c5571dafd9adde35415a333c8 /templates
parent1fcbb1c4196f84bd01f94bdda3e3bc243f1b4efb (diff)
downloadserial-barcode-scanner-a2c2a4b9e6a2dbbf103e989bebb507f4340d71e7.tar.bz2
initial support for suppliers & best before dates
Diffstat (limited to 'templates')
-rw-r--r--templates/products/entry.html8
-rw-r--r--templates/products/restock.html13
2 files changed, 16 insertions, 5 deletions
diff --git a/templates/products/entry.html b/templates/products/entry.html
index ffb0dcf..0cdd4a6 100644
--- a/templates/products/entry.html
+++ b/templates/products/entry.html
@@ -29,8 +29,12 @@
<div id="restock" style="display: {{{ISADMIN}}};">
<form action="/products/{{{EAN}}}/restock" class="form-horizontal">
- <input class="input-small" name="amount" type="number" min="1" placeholder="Amount" />
- <input class="input-small" name="price" type="number" step="0.01" min="0.01" placeholder="Price" />
+ <input class="input-small" name="amount" type="number" min="1" placeholder="Amount" title="Amount" />
+ <input class="input-small" name="price" type="number" step="0.01" min="0.01" placeholder="Price" title="Price per Piece" />
+ <select name="supplier" title="Supplier">
+ {{{SUPPLIERS}}}
+ </select>
+ <input class="input-small" name="best_before_date" type="date" title="Best Before Date (YYYY-MM-DD)" />
<button type="submit" class="btn btn-primary"><i class="icon-plus"></i></button>
</form>
</div>
diff --git a/templates/products/restock.html b/templates/products/restock.html
index c314b29..70926c5 100644
--- a/templates/products/restock.html
+++ b/templates/products/restock.html
@@ -1,8 +1,15 @@
<h2>Restock: {{{NAME}}}</h2>
-<div id="restock-successful" class="alert alert-success" style="display: {{{RESTOCK.OK}}};">
- Successfully restocked <b>{{{AMOUNT}}}</b> items of
- product <b>{{{NAME}}}</b>. Price per item: <b>{{{PRICE}}}</b>.
+<div id="restock-successful" class="alert" style="display: {{{RESTOCK.OK}}};">
+ <p>Successfully restocked:</p>
+
+ <table class="table table-hover">
+ <tr><th>Name</th><td>{{{NAME}}}</td></tr>
+ <tr><th>Amount</th><td>{{{AMOUNT}}}</td></tr>
+ <tr><th>Price</th><td>{{{PRICE}}}</td></tr>
+ <tr><th>Supplier</th><td>{{{SUPPLIER}}}</td></tr>
+ <tr><th>Best Before Date</th><td>{{{BESTBEFORE}}}</td></tr>
+ </table>
</div>
<div id="restock-failed" class="alert alert-error" style="display: {{{RESTOCK.FAIL}}};">