diff options
author | Sebastian Reichel <sre@ring0.de> | 2012-11-04 09:54:31 +0100 |
---|---|---|
committer | Sebastian Reichel <sre@ring0.de> | 2012-11-04 09:54:31 +0100 |
commit | 4d8b321665378d82f3fd6e29e11f45ac25c79d83 (patch) | |
tree | 7750fb852a17b3f332c3b249de5ceae372e18d7f | |
parent | 25f1132d4f004211adf39e3f373ec0498c0d0fc7 (diff) | |
download | serial-barcode-scanner-4d8b321665378d82f3fd6e29e11f45ac25c79d83.tar.bz2 |
support € values in the template
-rw-r--r-- | templates/products/entry.html | 6 | ||||
-rw-r--r-- | templates/products/index.html | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/templates/products/entry.html b/templates/products/entry.html index 2b3969a..ffb0dcf 100644 --- a/templates/products/entry.html +++ b/templates/products/entry.html @@ -15,8 +15,8 @@ <div id="new_price" style="display: {{{ISADMIN}}};"> <form action="/products/{{{EAN}}}/newprice" class="form-horizontal"> - <input class="input-small" name="member" type="number" min="1" placeholder="Member" /> - <input class="input-small" name="guest" type="number" min="1" placeholder="Guest" /> + <input class="input-small" name="member" type="number" step="0.01" min="0.01" placeholder="Member" /> + <input class="input-small" name="guest" type="number" step="0.01" min="0.01" placeholder="Guest" /> <button type="submit" class="btn btn-primary">Add new Prices</button> </form> </div> @@ -30,7 +30,7 @@ <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" min="1" placeholder="Price" /> + <input class="input-small" name="price" type="number" step="0.01" min="0.01" placeholder="Price" /> <button type="submit" class="btn btn-primary"><i class="icon-plus"></i></button> </form> </div> diff --git a/templates/products/index.html b/templates/products/index.html index bd4e0e9..0035f7e 100644 --- a/templates/products/index.html +++ b/templates/products/index.html @@ -12,8 +12,8 @@ <legend>New Product</legend> <input class="input-medium" name="id" type="number" min="0" placeholder="EAN" /> <input class="input-medium" name="name" type="text" placeholder="Name" /> - <input class="input-medium" name="memberprice" type="number" placeholder="Memberprice" /> - <input class="input-medium" name="guestprice" type="number" placeholder="Guestprice" /> + <input class="input-medium" name="memberprice" type="number" step="0.01" min="0.01" placeholder="Memberprice" /> + <input class="input-medium" name="guestprice" type="number" step="0.01" min="0.01" placeholder="Guestprice" /> <button type="submit" class="btn btn-primary"><i class="icon-plus"></i></button> </form> </div> |