summaryrefslogtreecommitdiffstats
path: root/templates/https/_page.html
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/https/_page.html
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/https/_page.html')
-rw-r--r--templates/https/_page.html54
1 files changed, 54 insertions, 0 deletions
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>