diff options
author | Simon Rettberg | 2016-05-03 19:03:09 +0200 |
---|---|---|
committer | Simon Rettberg | 2016-05-03 19:03:09 +0200 |
commit | 50404f3b23b7fd6aeae4c9d2f6df0ea25e984e66 (patch) | |
tree | 05e99fdffa696434960d7c77966c0bc36d6339e8 /modules-available/webinterface/templates | |
parent | Second half of merge.... (diff) | |
download | slx-admin-50404f3b23b7fd6aeae4c9d2f6df0ea25e984e66.tar.gz slx-admin-50404f3b23b7fd6aeae4c9d2f6df0ea25e984e66.tar.xz slx-admin-50404f3b23b7fd6aeae4c9d2f6df0ea25e984e66.zip |
WIP
Diffstat (limited to 'modules-available/webinterface/templates')
3 files changed, 91 insertions, 0 deletions
diff --git a/modules-available/webinterface/templates/httpd-restart.html b/modules-available/webinterface/templates/httpd-restart.html new file mode 100644 index 00000000..cc84aafb --- /dev/null +++ b/modules-available/webinterface/templates/httpd-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/modules-available/webinterface/templates/https.html b/modules-available/webinterface/templates/https.html new file mode 100644 index 00000000..c6161cd6 --- /dev/null +++ b/modules-available/webinterface/templates/https.html @@ -0,0 +1,60 @@ +<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> + {{^httpsEnabled}} + <p>{{lang_HttpsIsDisabled}}</p> + {{/httpsEnabled}} + {{#httpsEnabled}} + <div class="input-group" onclick="$('#moff').prop('checked', true); + $('#wcustom').hide()"> + <span class="input-group-addon"><input id="moff" type="radio" name="mode" value="off"></span> + <span class="form-control"> + {{lang_noHttps}} + </span> + </div> + {{/httpsEnabled}} + <div class="input-group" onclick="$('#mrandom').prop('checked', true); + $('#wcustom').hide()"> + <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/modules-available/webinterface/templates/passwords.html b/modules-available/webinterface/templates/passwords.html new file mode 100644 index 00000000..f9fda016 --- /dev/null +++ b/modules-available/webinterface/templates/passwords.html @@ -0,0 +1,25 @@ +<form action="?do=WebInterface" method="post"> + <input type="hidden" name="token" value="{{token}}"> + <input type="hidden" name="action" value="password"> + <div class="panel panel-default"> + <div class="panel-heading">{{lang_passwordFields}}</div> + <div class="panel-body"> + <p>{{lang_description}}</p> + <div class="input-group" onclick="$('#pmshow').prop('checked', true)"> + <span class="input-group-addon"><input id="pmshow" type="radio" name="mode" value="show" {{selected_show}}></span> + <span class="form-control"> + {{lang_showPasswords}} + </span> + </div> + <div class="input-group" onclick="$('#pmhide').prop('checked', true)"> + <span class="input-group-addon"><input id="pmhide" type="radio" name="mode" value="hide" {{selected_hide}}></span> + <span class="form-control"> + {{lang_hidePasswords}} + </span> + </div> + <div class="pull-right"> + <button type="submit" class="btn btn-primary">{{lang_save}}</button> + </div> + </div> + </div> +</form> |