summaryrefslogtreecommitdiffstats
path: root/templates/webinterface/https.html
diff options
context:
space:
mode:
authorSimon Rettberg2014-12-05 19:15:41 +0100
committerSimon Rettberg2014-12-05 19:15:41 +0100
commit19ec20ab89bf938fe2dd1a99b62debc76e199425 (patch)
treefb084493aed19cc481b2276dff5063ac796c7a65 /templates/webinterface/https.html
parentUse different icons for client log entries (incomplete) (diff)
downloadslx-admin-19ec20ab89bf938fe2dd1a99b62debc76e199425.tar.gz
slx-admin-19ec20ab89bf938fe2dd1a99b62debc76e199425.tar.xz
slx-admin-19ec20ab89bf938fe2dd1a99b62debc76e199425.zip
Add option to hide or show password fields
Diffstat (limited to 'templates/webinterface/https.html')
-rw-r--r--templates/webinterface/https.html53
1 files changed, 53 insertions, 0 deletions
diff --git a/templates/webinterface/https.html b/templates/webinterface/https.html
new file mode 100644
index 00000000..ca2a9d04
--- /dev/null
+++ b/templates/webinterface/https.html
@@ -0,0 +1,53 @@
+<form action="?do=WebInterface" method="post">
+ <input type="hidden" name="token" value="{{token}}">
+ <input type="hidden" name="action" value="https">
+ <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>