From ff2dffd34f557edeeee4ff93028717e79f45441a Mon Sep 17 00:00:00 2001
From: ulrich <not disclosed>
Date: Wed, 01 Feb 2017 17:28:13 +0000
Subject: [PATCH] Alle HTML-Synthetisierungen im Code durch Mustache-Templates ersetzt

---
 web/ui/index.html |   24 ++++++++++++++++++++----
 1 files changed, 20 insertions(+), 4 deletions(-)

diff --git a/web/ui/index.html b/web/ui/index.html
index 498839c..ada5958 100644
--- a/web/ui/index.html
+++ b/web/ui/index.html
@@ -6,13 +6,29 @@
     <title>Benutzer</title>
     <link rel="stylesheet" type="text/css" href="/jslib/bootstrap/css/bootstrap.min.css">
     <link rel="stylesheet" type="text/css" href="stile.css">
-    <script id="tpl-user-list" type="x-tmpl-mustache">
+    <script id="tpl-list" type="x-tmpl-mustache">
       {{#List}}
-      {{#UserData}}
-        <option value="{{ id }}">{{ id }}</option>'
-      {{/UserData}}
+      {{#List}}
+        <option value="{{ String }}">{{ String }}</option>'
+      {{/List}}
       {{/List}}
     </script>
+    <!--
+    <script id="tpl-role-list" type="x-tmpl-mustache">
+      {{#List}}
+      {{#List}}
+        <option value="{{ String }}">{{ String }}</option>'
+      {{/List}}
+      {{/List}}
+    </script>
+    <script id="tpl-user-role-list" type="x-tmpl-mustache">
+      {{#List}}
+      {{#List}}
+        <option value="{{ String }}">{{ String }}</option>'
+      {{/List}}
+      {{/List}}
+    </script>
+    -->
   </head>
   <body>
     <div id="inhalt">

--
Gitblit v1.9.3