summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/css/base.css4
-rw-r--r--templates/menu.html10
-rw-r--r--templates/products/index.html4
-rw-r--r--templates/products/inventory.html49
4 files changed, 63 insertions, 4 deletions
diff --git a/templates/css/base.css b/templates/css/base.css
index e273808..2444eca 100644
--- a/templates/css/base.css
+++ b/templates/css/base.css
@@ -84,6 +84,10 @@ table.user-entry td {
min-width: 350px;
}
+h1 {
+ margin-bottom: 30px;
+}
+
@media print {
.navbar-fixed-top {
display: none !important;
diff --git a/templates/menu.html b/templates/menu.html
index 764068a..1e73a8c 100644
--- a/templates/menu.html
+++ b/templates/menu.html
@@ -3,7 +3,15 @@
<ul class="nav">
<li class="{{{MENU.home}}}"><a href="/">Home</a></li>
- <li class="{{{MENU.products}}}"><a href="/products">Products</a></li>
+ <li class="{{{MENU.products}}} dropdown">
+ <a href="#" class="dropdown-toggle" data-toggle="dropdown">Products <b class="caret"></b></a>
+ <ul class="dropdown-menu">
+ <li><a href="/products">List</a></li>
+ <li><a href="/products/bestbefore">Best before dates</a></li>
+ <li><a href="/products/inventory">Start inventory</a></li>
+ </ul>
+ </li>
+
<li class="{{{MENU.aliases}}}"><a href="/aliases">Aliases</a></li>
<li class="{{{MENU.cashbox}}} {{{AUTH_CASHBOX}}}"><a href="/cashbox">Cashbox</a></li>
<!--
diff --git a/templates/products/index.html b/templates/products/index.html
index d80adbd..668a44e 100644
--- a/templates/products/index.html
+++ b/templates/products/index.html
@@ -1,8 +1,6 @@
-<a href="/products/bestbefore">product list with best before dates</a>
-
<table class="sortable table table-bordered table-striped table-condensed">
<thead>
- <tr><th>EAN</th></th><th>Name</th><th>Category</th><th>Amount</th><th>Memberprice</th><th>Guestprice</th></tr>
+ <tr><th>EAN</th><th>Name</th><th>Category</th><th>Amount</th><th>Memberprice</th><th>Guestprice</th></tr>
</thead>
<tbody>
{{{DATA}}}
diff --git a/templates/products/inventory.html b/templates/products/inventory.html
new file mode 100644
index 0000000..ede1aea
--- /dev/null
+++ b/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-primaryn">Only products with amount > 0</a>
+ <a href="/products/inventory-pdf?all=1" target="_blank" class="btn btn-primaryn">All products</a>
+</div>
+
+<form action="/products/inventory" method="POST" class="form form-horizontal">
+ <div class="{{{RESTOCK_HIDDEN}}} control-group">
+ <label class="control-label">Select the supplier for the restock action.</label>
+ <div class="controls">
+ <select name="supplierId">
+ {{{SUPPLIERS}}}
+ </select>
+ </div>
+ </div>
+ <div class="{{{RESTOCK_HIDDEN}}} control-group">
+ <label class="control-label">Select the Shop User for loss transaction.</label>
+ <div class="controls">
+ <select name="userId">
+ {{{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