Commit Graph

4 Commits

Author SHA1 Message Date
johnnyq
373041b251 QoL 71: custom asset types on a new Asset Types admin page, started from a built-in type with their own icon, color, group, fields, ITFlow details, rack setting and details of their own (text, number, list, flagged date), working across the asset form and page, exports, imports, products, racks, reports and the API, with renaming carried to assets, products and recurring lines, deleting that moves what has the type, switching any type but Other off and on with Undo, and one-click set up of types found on assets 2026-11-21 16:17:34 -05:00
johnnyq
eb79252ca0 QoL 45: intval and floatval in place of int and float casts and a string cast in place of strval, redirect in place of raw Location headers wherever functions.php is loaded, redirect fallback escapes the URL with json_encode and escapeHtml, escapeHtml for the last htmlspecialchars on a page, and the plain-HTTP cookie notice through flashAlert 2026-11-21 00:20:16 -05:00
johnnyq
a4f2cf0a60 Virtual machines can have a vendor: Virtual Machine in ASSET_TYPES now has the purchase fields, so the asset form shows Vendor, Order / invoice reference and Purchased on its Purchase tab like other types, for the provider a hosted VM or VPS is rented from - before, a VM only kept a vendor when added from a vendor's page; 26.11.9 changelog entries 2026-11-16 13:00:50 -05:00
johnnyq
9ba21cf352 Assets: add NAS, UPS, PDU, Modem/ONT and NVR/DVR types from a new registry in functions/asset_type.php that sets each type's icon, tone, group, fields and details; the asset form shows only the fields a type uses (fields that already hold a value stay shown) and adds a Details section per type (CPU/RAM/storage, VM host/vCPUs, switch ports/SFP/PoE/management, NAS drives/capacity/RAID, UPS capacity/output/runtime/outlets/battery dates, PDU kind/outlets/input, modem circuit ID/ISP account, printer, phone, mobile, display, camera and NVR details) stored in a new asset_specs table (database 3.4.9); new or changed port and SFP counts add the missing interfaces, continuing the asset's numbering, skipping Wi-Fi, VLAN and management ports and never deleting any; the asset page and quick look show the details, a server or NAS lists the VMs that run on it, and Assigned and Warranty show only on types that use them; the list gets Servers & NAS and Power tabs, an optional Details column, a UPS battery badge, an Assigned picker only on assigned types, and New buttons named for what they add; nightly UPS Battery Due notifications at 45, 7 and 1 days as a Support notification; copy leaves out per-unit details, Transfer to Client carries details and interface types, export adds per-detail columns, import reads detail columns after the standard twelve (VM hosts by name, resolved after every row is in) and reports values it could not keep, and the API reads and writes asset_specs; racks, client portal, client export, overview, document templates and AI lists group the new types; fix asset import carrying physical location and notes into the next row, saving 0000-00-00 for a missing purchase date and warning on an unknown contact or location, save API and import types in the list's spelling, and keep interface types on transfer; changelog updated 2026-10-27 15:59:03 -04:00