Add notes to domains

This commit is contained in:
Marcus Hill
2023-12-31 11:13:48 +00:00
parent 1a1b4ee810
commit d3b59edfe4
4 changed files with 33 additions and 18 deletions

View File

@@ -14,20 +14,21 @@ function populateDomainEditModal(client_id, domain_id) {
const vendors = response.vendors;
// Populate the domain modal fields
document.getElementById("editHeader").innerText = domain.domain_name;
document.getElementById("editDomainHeader").innerText = domain.domain_name;
document.getElementById("editDomainId").value = domain_id;
document.getElementById("editDomainName").value = domain.domain_name;
document.getElementById("editExpire").value = domain.domain_expire;
document.getElementById("editDomainExpire").value = domain.domain_expire;
document.getElementById("editDomainNotes").value = domain.domain_notes;
document.getElementById("editDomainIP").value = domain.domain_ip;
document.getElementById("editNameServers").value = domain.domain_name_servers;
document.getElementById("editMailServers").value = domain.domain_mail_servers;
document.getElementById("editTxtRecords").value = domain.domain_txt;
document.getElementById("editRawWhois").value = domain.domain_raw_whois;
document.getElementById("editDomainNameServers").value = domain.domain_name_servers;
document.getElementById("editDomainMailServers").value = domain.domain_mail_servers;
document.getElementById("editDomainTxtRecords").value = domain.domain_txt;
document.getElementById("editDomainRawWhois").value = domain.domain_raw_whois;
/* DROPDOWNS */
// Registrar dropdown
var registrarDropdown = document.getElementById("editRegistrarId");
var registrarDropdown = document.getElementById("editDomainRegistrarId");
// Clear registrar dropdown
var i, L = registrarDropdown.options.length -1;
@@ -48,7 +49,7 @@ function populateDomainEditModal(client_id, domain_id) {
});
// Webhost dropdown
var webhostDropdown = document.getElementById("editWebhostId");
var webhostDropdown = document.getElementById("editDomainWebhostId");
// Clear registrar dropdown
var i, L = webhostDropdown.options.length -1;