summaryrefslogtreecommitdiffstats
path: root/templates/users/entry.html
diff options
context:
space:
mode:
authorSebastian Reichel <sre@ring0.de>2017-04-18 22:15:34 +0200
committerGitHub <noreply@github.com>2017-04-18 22:15:34 +0200
commitb1bd88ef5355ea1b8edbf777215bb44fce36f32a (patch)
tree665b0df5b26f55cf845723a4b1629937ed1fa422 /templates/users/entry.html
parent529d6dd34f9209efef18c04121075be9ac310c9c (diff)
parentcee8d7e8684ec03240e95f8443e4f5cbc04bec5a (diff)
downloadserial-barcode-scanner-b1bd88ef5355ea1b8edbf777215bb44fce36f32a.tar.bz2
Merge pull request #24 from smilix/customizable_user_sounds
Customizable user sounds
Diffstat (limited to 'templates/users/entry.html')
-rw-r--r--templates/users/entry.html21
1 files changed, 20 insertions, 1 deletions
diff --git a/templates/users/entry.html b/templates/users/entry.html
index d72b304..60d2dd3 100644
--- a/templates/users/entry.html
+++ b/templates/users/entry.html
@@ -3,7 +3,7 @@
{{{MESSAGE}}}
<form method="POST" enctype="multipart/form-data" action="#">
- <table class="table table-bordered table-nonfluid">
+ <table class="table table-bordered table-nonfluid user-entry">
<tr><th>ID</th><td>{{{UID}}}</td></tr>
<tr>
<th>Barcode</th>
@@ -22,6 +22,24 @@
<tr><th>Street</th><td>{{{STREET}}}</td></tr>
<tr><th>PLZ</th><td>{{{POSTALCODE}}}</td></tr>
<tr><th>City</th><td>{{{CITY}}}</td></tr>
+ <tr><th colspan="2">Settings</th></tr>
+ <tr><th>Sound theme</th>
+ <td>
+ <form method="POST" enctype="multipart/form-data" action="#">
+ <select class="form-control" name="soundTheme">
+ <option value="##random">~ random ~</option>
+ {{{SOUND_THEMES}}}
+ </select>
+ <input type="submit" class="btn btn-default" value="Update">
+ </form>
+ <br>
+ <a href="https://github.com/ktt-ol/serial-barcode-scanner/tree/master/sounds/user" target="_blank">See Preview</a>
+ </td>
+ </tr>
+ </table>
+</form>
+<form method="POST" enctype="multipart/form-data" action="#">
+ <table class="table table-bordered table-nonfluid user-entry">
<tr><th colspan="2">Status Information</th></tr>
<tr><th>Disabled</th><td>{{{DISABLED}}}</td></tr>
<tr><th>Hidden</th><td>{{{HIDDEN}}}</td></tr>
@@ -41,6 +59,7 @@
code39_init();
code39_draw("USER {{{UID}}}", true);
+
$('#authproductsbutton').on('click', function (e) {
var req = $.getJSON(
"/users/{{{UID}}}/toggle_auth_products",