mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 02:28:03 -07:00
[php][js] ssl uploading
This commit is contained in:
parent
ff84992687
commit
b7710ee5da
3 changed files with 50 additions and 101 deletions
|
@ -146,13 +146,20 @@ App.HTML.Build.web_domain_form = function (options, id) {
|
|||
tpl.set(':title', 'Edit WEB domain');
|
||||
tpl.set(':save_button', 'SAVE');
|
||||
tpl.set(':DELETE_ACTION', App.Templates.get('DELETE_ACTION', 'general').finalize());
|
||||
if (options.SSL == 'yes') {
|
||||
if (options.SSL == 'on') {
|
||||
tpl.set(':ssl_checked', 'checked="checked"');
|
||||
}
|
||||
else {
|
||||
tpl.set(':ssl_checked', '');
|
||||
}
|
||||
if (options.SSL_HOME == 'on') {
|
||||
tpl.set(':ssl_home_checked', 'checked="checked"');
|
||||
}
|
||||
else{
|
||||
tpl.set(':ssl_home_checked', '');
|
||||
}
|
||||
}
|
||||
|
||||
options = !App.Helpers.isEmpty(options) ? options : App.Empty.WEB_DOMAIN;
|
||||
if (in_edit == true) {
|
||||
options.STATS_PASSWORD = options.STATS_LOGIN.trim() != '' ? App.Settings.PASSWORD_IMMUTE : '';
|
||||
|
@ -176,6 +183,25 @@ App.HTML.Build.web_domain_form = function (options, id) {
|
|||
tpl.set(':ACTIVE_PASSWORD', 'hidden');
|
||||
tpl.set(':stats_auth_checked', '');
|
||||
}
|
||||
|
||||
if (options.SSL == 'on') {
|
||||
tpl.set(':ssl_checked', 'checked="checked"');
|
||||
if (options.SSL_HOME == 'on') {
|
||||
tpl.set(':ssl_home_checked', 'checked="checked"');
|
||||
}
|
||||
else{
|
||||
tpl.set(':ssl_home_checked', '');
|
||||
}
|
||||
}
|
||||
else {
|
||||
tpl.set(':ssl_checked', '');
|
||||
tpl.set(':ssl_home_checked', '');
|
||||
tpl.set(':SSL_HOME', '');
|
||||
tpl.set(':SSL_CRT', '');
|
||||
tpl.set(':SSL_KEY', '');
|
||||
tpl.set(':SSL_CA', '');
|
||||
}
|
||||
|
||||
return tpl.finalize();
|
||||
}
|
||||
|
||||
|
|
|
@ -669,8 +669,8 @@ App.Templates.html = {
|
|||
<input type="checkbox" name="SSL" class="styled do_action_toggle_ssl_support ssl_support" ~!:ssl_checked~! value="~!SSL~!">\
|
||||
</div>\
|
||||
<div class="form-row cc ssl-crtfct-box">\
|
||||
<label for="#" class="field-label">SSL Document Root:</label>\
|
||||
<input type="text" name="SSL_HOME" class="text-field" value="~!:SSL_HOME~!">\
|
||||
<label for="#" class="field-label">SSL Shared DocRoot:</label>\
|
||||
<input type="checkbox" name="SSL_HOME" class="styled" ~!:ssl_home_checked~! value="~!SSL_HOME~!">\
|
||||
</div>\
|
||||
<div class="form-row ssl-crtfct-box cc">\
|
||||
<label for="#" class="field-label">SSL Crtificate: <span class="remark">(upload file or paste as text)</span></label>\
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue