feat: IPAM improvements - server/node subnet binding, theme color fixes
- IPAM link-allocations: filter networks by proxmox_server_id and proxmox_node to prevent cross-server/cross-node IP assignment - IPAM link-allocations: add manual server+network selection modal before linking - IPAM add-network forms: add Proxmox server and node selectors with dynamic cluster-info loading (ipam_dashboard.html, ipam_networks.html) - models.py / schemas.py: add proxmox_node field to IPAMNetwork - migrations: migration #16 adds proxmox_node column to ipam_networks table - Theme fixes: replace all hardcoded rgba/color:#fff/color:white with CSS vars across base.html, virtual_machines.html, instance_detail.html, os_templates.html, proxmox_vms.html, ipam_network_detail.html, ipam_allocations.html - i18n: add proxmox_node, node selector, link-allocations modal keys (ru/en) - Version bump: 1.0.4 -> 1.0.5
This commit is contained in:
@@ -1083,16 +1083,16 @@ body.update-in-progress .layout {
|
||||
const toast = document.createElement('div');
|
||||
toast.style.cssText = `
|
||||
position: fixed; top: 20px; right: 20px; min-width: 300px; max-width: 400px;
|
||||
padding: 16px 20px; background: rgba(30, 30, 40, 0.95); border: 1px solid rgba(255,255,255,0.1);
|
||||
padding: 16px 20px; background: var(--bg-surface); border: 1px solid var(--border-default);
|
||||
border-left: 4px solid ${borderColor}; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.5);
|
||||
z-index: 99999; animation: toastSlide 0.3s ease-out;
|
||||
`;
|
||||
toast.innerHTML = `
|
||||
<div style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px;">
|
||||
<span style="font-weight: 600; color: #fff;">${title}</span>
|
||||
<button onclick="this.parentElement.parentElement.remove()" style="background: none; border: none; color: #888; cursor: pointer; font-size: 18px;">×</button>
|
||||
<span style="font-weight: 600; color: var(--text-primary);">${title}</span>
|
||||
<button onclick="this.parentElement.parentElement.remove()" style="background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 18px;">×</button>
|
||||
</div>
|
||||
<div style="color: #aaa; font-size: 14px;">${msg || ''}</div>
|
||||
<div style="color: var(--text-secondary); font-size: 14px;">${msg || ''}</div>
|
||||
`;
|
||||
document.body.appendChild(toast);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user