diff options
author | Sebastian Reichel <sre@ring0.de> | 2015-09-13 23:05:18 +0200 |
---|---|---|
committer | Sebastian Reichel <sre@ring0.de> | 2015-09-13 23:05:18 +0200 |
commit | 1ea4fdf8072d6be99a13cc796c9775c05f8c9498 (patch) | |
tree | b743630f1813670d6034717da829b17bc33e906b /templates | |
parent | 9dce0dfa4cd90e7ce2131e1e5821f54eb3754b26 (diff) | |
download | serial-barcode-scanner-1ea4fdf8072d6be99a13cc796c9775c05f8c9498.tar.bz2 |
Add support for aliased EANs
Some products are sold under different EANs (e.g. per-country EANs).
The alias table can be used to map multiple EANs to a single product.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/aliases/index.html | 17 | ||||
-rw-r--r-- | templates/aliases/new.html | 14 | ||||
-rw-r--r-- | templates/menu.html | 1 |
3 files changed, 32 insertions, 0 deletions
diff --git a/templates/aliases/index.html b/templates/aliases/index.html new file mode 100644 index 0000000..c914968 --- /dev/null +++ b/templates/aliases/index.html @@ -0,0 +1,17 @@ +<table class="sortable table table-bordered table-striped table-condensed"> + <thead> + <tr><th>EAN</th><th>Real EAN</th></th><th>Name</th></tr> + </thead> + <tbody> + {{{DATA}}} + </tbody> +</table> + +<div id="newalias" style="display: {{{NEWALIAS}}};"> + <form action="/aliases/new" class="form-horizontal"> + <legend>New Alias</legend> + <input class="input-medium" name="ean" type="number" min="0" placeholder="EAN" /> + <input class="input-medium" name="real_ean" type="number" min="0" placeholder="Real EAN" /> + <button type="submit" class="btn btn-primary"><i class="icon-plus"></i></button> + </form> +</div> diff --git a/templates/aliases/new.html b/templates/aliases/new.html new file mode 100644 index 0000000..34b610e --- /dev/null +++ b/templates/aliases/new.html @@ -0,0 +1,14 @@ +<h2>Add new product alias</h2> + +<div id="new-successful" class="alert alert-success" style="display: {{{NEW.OK}}};"> + <p>Successfully created new alias: {{{EAN}}} ➜ {{{REAL_EAN}}}</p> +</div> + +<div id="new-failed" class="alert alert-error" style="display: {{{NEW.FAIL}}};"> + <h4>Error</h4> + Creating new product alias failed. Please make sure + you have sufficient permissions and gave valid values + for EAN and real EAN. +</div> + +<a href=".">Back to alias list</a> diff --git a/templates/menu.html b/templates/menu.html index d92d778..764068a 100644 --- a/templates/menu.html +++ b/templates/menu.html @@ -4,6 +4,7 @@ <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.aliases}}}"><a href="/aliases">Aliases</a></li> <li class="{{{MENU.cashbox}}} {{{AUTH_CASHBOX}}}"><a href="/cashbox">Cashbox</a></li> <!-- <li class="{{{MENU.stats}}} dropdown"> |