summaryrefslogtreecommitdiffstats
path: root/templates/users
diff options
context:
space:
mode:
authorSebastian Reichel <sre@ring0.de>2012-11-05 18:52:39 +0100
committerSebastian Reichel <sre@ring0.de>2012-11-05 18:52:39 +0100
commitdabb96d7851625680dc24dc2fc2408652e37f91a (patch)
tree6acf79237596b466674a431b60d73ae2b4be66e9 /templates/users
parent4d8b321665378d82f3fd6e29e11f45ac25c79d83 (diff)
downloadserial-barcode-scanner-dabb96d7851625680dc24dc2fc2408652e37f91a.tar.bz2
show barcode in user profile
Diffstat (limited to 'templates/users')
-rw-r--r--templates/users/entry.html12
1 files changed, 12 insertions, 0 deletions
diff --git a/templates/users/entry.html b/templates/users/entry.html
index 8a72860..740804e 100644
--- a/templates/users/entry.html
+++ b/templates/users/entry.html
@@ -5,6 +5,13 @@
<form method="POST" enctype="multipart/form-data" action="#">
<table class="table table-bordered table-nonfluid">
<tr><th>ID</th><td>{{{UID}}}</td></tr>
+ <tr>
+ <th>Barcode</th>
+ <td>
+ <canvas id="barcode"></canvas><br>
+ <a href="#" onclick="window.open(code39_url());">Download</a>
+ </td>
+ </tr>
<tr><th>Firstname</th><td>{{{FIRSTNAME}}}</td></tr>
<tr><th>Lastname</th><td>{{{LASTNAME}}}</td></tr>
<tr><th>E-Mail</th><td>{{{EMAIL}}}</td></tr>
@@ -20,3 +27,8 @@
<tr><td><input type="submit" value="Change Password" /></td></tr>
</table>
</form>
+
+<script language="JavaScript">
+ code39_init();
+ code39_draw("USER {{{UID}}}", true);
+</script>