summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorSebastian Reichel <sre@ring0.de>2015-02-14 22:53:22 +0100
committerSebastian Reichel <sre@ring0.de>2015-02-14 23:42:09 +0100
commitd2f7ccfd1bab830e7758b3af4a70dc31e64327f3 (patch)
tree5c56e8082df85ddcaf009c1d20782d306e385acc /templates
parent06c4d13da6267d9c5698bec9521c76e3efdb1efa (diff)
downloadserial-barcode-scanner-d2f7ccfd1bab830e7758b3af4a70dc31e64327f3.tar.bz2
web: more detailed authentication system
Diffstat (limited to 'templates')
-rw-r--r--templates/menu.html4
-rw-r--r--templates/users/entry.html3
2 files changed, 5 insertions, 2 deletions
diff --git a/templates/menu.html b/templates/menu.html
index 138cc23..d92d778 100644
--- a/templates/menu.html
+++ b/templates/menu.html
@@ -4,7 +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.cashbox}}} {{{SUPERUSER}}}"><a href="/cashbox">Cashbox</a></li>
+ <li class="{{{MENU.cashbox}}} {{{AUTH_CASHBOX}}}"><a href="/cashbox">Cashbox</a></li>
<!--
<li class="{{{MENU.stats}}} dropdown">
<a href="#" id="statsmenu" class="dropdown-toggle" data-toggle="dropdown">Statistics <b class="caret"></b></a>
@@ -17,7 +17,7 @@
</ul>
</li>
-->
- <li class="{{{MENU.users}}} {{{SUPERUSER}}} dropdown">
+ <li class="{{{MENU.users}}} {{{AUTH_USERS}}} dropdown">
<a href="#" id="usersmenu" class="dropdown-toggle" data-toggle="dropdown">Users <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="/users">List</a></li>
diff --git a/templates/users/entry.html b/templates/users/entry.html
index ee1959c..9ff0239 100644
--- a/templates/users/entry.html
+++ b/templates/users/entry.html
@@ -23,6 +23,9 @@
<tr><th colspan="2">Administrative Information</th></tr>
<tr><th>Disabled</th><td>{{{DISABLED}}}</td></tr>
<tr><th>Superuser</th><td>{{{ISSUPERUSER}}}</td></tr>
+ <tr><th>Auth Products</th><td>{{{HAS_AUTH_PRODUCTS}}}</td></tr>
+ <tr><th>Auth Cashbox</th><td>{{{HAS_AUTH_CASHBOX}}}</td></tr>
+ <tr><th>Auth Users</th><td>{{{HAS_AUTH_USERS}}}</td></tr>
<tr><th rowspan="3">Password</th><td><input name="password1" placeholder="New Password" type="password" /></td></tr>
<tr><td><input name="password2" placeholder="New Password (again)" type="password" /></td></tr>
<tr><td><input type="submit" value="Change Password" /></td></tr>