summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorSimon Rettberg2014-11-19 19:51:49 +0100
committerSimon Rettberg2014-11-19 19:51:49 +0100
commitd3e058cc3450cea589484a600c12fffb6ef8e330 (patch)
tree201e900ede72851fe6ed29ee951ef6a05c796d1d /templates
parentUpdate config example, style, translations (diff)
downloadslx-admin-d3e058cc3450cea589484a600c12fffb6ef8e330.tar.gz
slx-admin-d3e058cc3450cea589484a600c12fffb6ef8e330.tar.xz
slx-admin-d3e058cc3450cea589484a600c12fffb6ef8e330.zip
Add HTTPS config module for webif, update everything to use FileUtil class, minor fixes
Diffstat (limited to 'templates')
-rw-r--r--templates/backup/restore.html2
-rw-r--r--templates/https/_page.html54
-rw-r--r--templates/https/restart.html6
-rw-r--r--templates/page-login.html4
4 files changed, 63 insertions, 3 deletions
diff --git a/templates/backup/restore.html b/templates/backup/restore.html
index da5a9bce..3e29dbdc 100644
--- a/templates/backup/restore.html
+++ b/templates/backup/restore.html
@@ -9,7 +9,7 @@
<div data-tm-id="{{restoreid}}" data-tm-log="messages" data-tm-callback="restoreCb">{{lang_restoreConfig}}</div>
<div data-tm-id="{{rebootid}}" data-tm-log="messages">{{lang_reboot}}</div>
</div>
- <div id="restorefailed" style="display:none">
+ <div id="restorefailed" class="alert alert-danger" style="display:none">
{{lang_restoreFailed}}
</div>
</div>
diff --git a/templates/https/_page.html b/templates/https/_page.html
new file mode 100644
index 00000000..bf791526
--- /dev/null
+++ b/templates/https/_page.html
@@ -0,0 +1,54 @@
+<h1>{{lang_httpsSettings}}</h1>
+
+<form action="?do=Https" method="post">
+ <input type="hidden" name="token" value="{{token}}">
+ <div class="panel panel-default">
+ <div class="panel-heading">{{lang_httpsSettings}}</div>
+ <div class="panel-body">
+ <p>{{lang_description}}</p>
+ <div class="input-group" onclick="$('#moff').prop('checked', true)">
+ <span class="input-group-addon"><input id="moff" type="radio" name="mode" value="off"></span>
+ <span class="form-control">
+ {{lang_noHttps}}
+ </span>
+ </div>
+ <div class="input-group" onclick="$('#mrandom').prop('checked', true)">
+ <span class="input-group-addon"><input id="mrandom" type="radio" name="mode" value="random"></span>
+ <span class="form-control">
+ {{lang_randomCert}}
+ </span>
+ </div>
+ <div class="input-group" onclick="$('#mcustom').prop('checked', true);
+ $('#wcustom').show()">
+ <span class="input-group-addon"><input id="mcustom" type="radio" name="mode" value="custom"></span>
+ <span class="form-control">
+ {{lang_customCert}}
+ </span>
+ </div>
+ <div class="well well-sm" style="display:none" id="wcustom">
+ {{lang_certificate}}
+ <pre class="small">
+-----BEGIN CERTIFICATE-----
+MIIFfTCCA...
+.....
+-----END CERTIFICATE-----</pre>
+ <textarea name="certificate" class="form-control small" cols="101" rows="10"></textarea>
+ <hr>
+ {{lang_privateKey}}
+ <pre class="small">
+-----BEGIN PRIVATE KEY-----
+MIIFfTCCA...
+.....
+-----END PRIVATE KEY-----</pre>
+ <textarea name="privatekey" class="form-control small" cols="101" rows="10"></textarea>
+ <hr>
+ {{lang_caChain}}
+ <textarea name="cachain" class="form-control small" cols="101" rows="10"></textarea>
+ <hr>
+ </div>
+ <div class="pull-right">
+ <button type="submit" class="btn btn-primary">{{lang_save}}</button>
+ </div>
+ </div>
+ </div>
+</form>
diff --git a/templates/https/restart.html b/templates/https/restart.html
new file mode 100644
index 00000000..cc84aafb
--- /dev/null
+++ b/templates/https/restart.html
@@ -0,0 +1,6 @@
+<div class="panel panel-default">
+ <div class="panel-heading">{{lang_applyingSettings}}</div>
+ <div class="panel-body">
+ <div data-tm-id="{{taskid}}" data-tm-log="error">{{lang_installAndRestart}}</div>
+ </div>
+</div>
diff --git a/templates/page-login.html b/templates/page-login.html
index 556c162a..247e9a55 100644
--- a/templates/page-login.html
+++ b/templates/page-login.html
@@ -2,9 +2,9 @@
<h2 class="form-signin-heading">{{lang_enter}}</h2>
<input type="text" name="user" class="form-control" placeholder="{{lang_username}}" autofocus>
<input type="password" name="pass" class="form-control" placeholder="{{lang_password}}">
- <label class="checkbox">
+ <!--label class="checkbox">
<input type="checkbox" name="remember" value="remember-me"> {{lang_rememberID}}
- </label>
+ </label-->
<button class="btn btn-lg btn-primary btn-block" type="submit">{{lang_login}}</button>
<a class="btn btn-lg btn-primary btn-block" href="?do=AddUser">{{lang_register}}</a>
<input type="hidden" name="action" value="login">