summaryrefslogtreecommitdiffstats
path: root/templates/aliases/index.html
diff options
context:
space:
mode:
authorSebastian Reichel <sre@ring0.de>2015-09-13 23:05:18 +0200
committerSebastian Reichel <sre@ring0.de>2015-09-13 23:05:18 +0200
commit1ea4fdf8072d6be99a13cc796c9775c05f8c9498 (patch)
treeb743630f1813670d6034717da829b17bc33e906b /templates/aliases/index.html
parent9dce0dfa4cd90e7ce2131e1e5821f54eb3754b26 (diff)
downloadserial-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/aliases/index.html')
-rw-r--r--templates/aliases/index.html17
1 files changed, 17 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>