refactor: split ui into modules (resources, domains, infra, costs, modals)
This commit is contained in:
@@ -215,45 +215,3 @@ async function loadMapping(){
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function openDomainCreate(){
|
||||
|
||||
document.getElementById("domainModalTitle").innerText="Create Domain"
|
||||
|
||||
document.getElementById("domain_id").value=""
|
||||
|
||||
document.getElementById("domain_name").value=""
|
||||
document.getElementById("domain_provider").value=""
|
||||
document.getElementById("domain_ip").value=""
|
||||
document.getElementById("domain_cost").value=""
|
||||
document.getElementById("domain_notes").value=""
|
||||
|
||||
document.getElementById("domainModal").style.display="block"
|
||||
|
||||
}
|
||||
|
||||
function openDomainEdit(d){
|
||||
|
||||
document.getElementById("domainModalTitle").innerText="Edit Domain"
|
||||
|
||||
document.getElementById("domain_id").value=d.id
|
||||
|
||||
document.getElementById("domain_name").value=d.domain_name||""
|
||||
document.getElementById("domain_provider").value=d.provider||""
|
||||
document.getElementById("domain_ip").value=d.ip_address||""
|
||||
document.getElementById("domain_cost").value=d.yearly_cost||""
|
||||
document.getElementById("domain_notes").value=d.notes||""
|
||||
|
||||
document.getElementById("domainModal").style.display="block"
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
function closeDomainModal(){
|
||||
|
||||
document.getElementById("domainModal").style.display="none"
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user