Edit client

This commit is contained in:
Khanh Ngo 2020-06-02 11:08:39 +07:00
parent f84055bc21
commit f9bb6cfe7d
No known key found for this signature in database
GPG key ID: D5FAA6A16150E49E
6 changed files with 150 additions and 12 deletions

View file

@ -9,13 +9,13 @@ function renderClientList(data) {
// render client allocated ip addresses
let allocatedIpsHtml = "";
$.each(obj.Client.allocated_ips, function(index, obj) {
allocatedIpsHtml += `<small class="badge badge-secondary">${obj}</small>`;
allocatedIpsHtml += `<small class="badge badge-secondary">${obj}</small>&nbsp;`;
})
// render client allowed ip addresses
let allowedIpsHtml = "";
$.each(obj.Client.allowed_ips, function(index, obj) {
allowedIpsHtml += `<small class="badge badge-secondary">${obj}</small>`;
allowedIpsHtml += `<small class="badge badge-secondary">${obj}</small>&nbsp;`;
})
// render client html content