+
+
+
+
-
+
-
-
- -
-
-
-
{{ dnsProvider }}
-
{{ name }}
+
+
+
+
{{name}}
-
-
{{ created_on_text }} by
{{ created_by }}
+
+
+ {{domain}}
+
+
+
+
+
+
-
-
- {{domain}}
-
-
-
-
-
+
+
+
+
+
+
<%- include('bottom') %>
diff --git a/nodejs/views/hosts.ejs b/nodejs/views/hosts.ejs
index f71a0ea..5652fc0 100755
--- a/nodejs/views/hosts.ejs
+++ b/nodejs/views/hosts.ejs
@@ -10,13 +10,6 @@
margin-bottom: 1px;
}
- .card-title{
- font-weight: bold;
- }
-
- div.hostEditPanel{
- margin-bottom: 1em;
- }
div.form-group{
margin-bottom: 1em;
}
@@ -89,14 +82,21 @@
hostEditCancle();
host = $.scope.hosts.getByKey(host);
host.__jq_$el.addClass('table-warning');
+ $editHostForm.find('[name=is_wildcard').attr('disabled', true);
$.scope.editHost.update({...host, form: $editHostForm.html()});
+ if(host.is_wildcard){
+ $('.hostEditPanel [name="host"]').attr('disabled', true);
+ }
+
$.each(host, function( key, value ) { if(typeof value == "boolean"){
$(".hostEditPanel #"+ key +"-"+ value).prop('checked', true)
}else{
$(".hostEditPanel input[name='" + key + "']").val(value);
}
});
+
+ $('.hostEditPanel').scrollTo();
};
function hostDownloadCert(host, type){
@@ -127,7 +127,6 @@
$editHostForm = $('#addHost').clone();
$editHostForm.find('hr.buttonBreak').nextAll().remove();
// $editHostForm.find('.autoSll').addClass('bg-secondary');
- $editHostForm.find('[name=is_wildcard').attr('disabled', true);
hostPopulate(); //populate the table
$.scope.hosts.take = function($el, item, list){
@@ -137,7 +136,7 @@
});
};
- $.scope.hosts.update = function($el, $render, item, list){
+ $.scope.hosts.putUpdate = function($el, $render, item, list){
$render.show()
$el.replaceWith($render);
};
@@ -187,7 +186,7 @@
-
-