Development

This commit is contained in:
Matthew Grotke 2026-05-28 00:38:48 -04:00
parent e36d681cea
commit c26c45cdc8
2 changed files with 8 additions and 2 deletions

View file

@ -198,6 +198,7 @@
},
{
"type": "subnet_row",
"label": "VLAN Subnet",
"subnet_name": "subnet",
"prefix_name": "subnet_mask",
"subnet_placeholder": "e.g. 192.168.x.0",
@ -218,7 +219,7 @@
},
{
"type": "record_editor",
"label": "Router Identities on this VLAN",
"label": "Router identities on this VLAN",
"name": "server_identities",
"empty_message": "No identities added.",
"fields": [
@ -249,6 +250,10 @@
{
"type": "hr"
},
{
"type": "p",
"text": "Servers provided to network clients via DHCP"
},
{
"type": "hr"
},

View file

@ -1285,6 +1285,7 @@ def _render_item(item, tokens, inherited_req=None):
return f'<div class="form-row-{cols}">{inner}</div>'
if t == 'subnet_row':
subnet_name = e(item.get('label', 'Subnet'))
subnet_name = e(item.get('subnet_name', 'subnet'))
prefix_name = e(item.get('prefix_name', 'subnet_mask'))
subnet_val = apply_tokens(item.get('subnet_value', ''), tokens)