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, 24 insertions(+), 0 deletions(-) diff --git a/web/ui/index.html b/web/ui/index.html index 383671b..ada5958 100644 --- a/web/ui/index.html +++ b/web/ui/index.html @@ -6,6 +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-list" type="x-tmpl-mustache"> + {{#List}} + {{#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"> @@ -49,6 +72,7 @@ </div> </div> <script src="/jslib/jquery/jquery.min.js"></script> + <script src="/jslib/mustache/mustache.min.js"></script> <script src="ui.js"></script> <script type="text/javascript" charset="utf-8"> //var ui; -- Gitblit v1.9.3