Development

This commit is contained in:
Matthew Grotke 2026-06-02 14:09:05 -04:00
parent c63098edc0
commit 91b11c618b
8 changed files with 112 additions and 231 deletions

View file

@ -67,44 +67,10 @@
"row_actions": [
{
"client_requirement": "client_is_administrator+",
"action": "/action/dhcpreservations/reservations_edit",
"method": "inline_edit",
"method": "js_edit",
"target": "add-form",
"text": "Edit",
"class": "btn-ghost btn-sm",
"fields": [
{
"col": "description",
"input_type": "text"
},
{
"col": "hostname",
"input_type": "text",
"validate": "VALIDATION_NETWORK_NAME"
},
{
"col": "mac",
"input_type": "text",
"validate": "VALIDATION_MAC"
},
{
"col": "ip",
"input_type": "text",
"validate": "VALIDATION_IPV4_FORMAT|VALIDATION_ADDRESS",
"attrs": {
"data-vlan-subnets": "%VLAN_SUBNET_INFO_JSON%"
}
},
{
"col": "radius_client",
"input_type": "checkbox",
"checkbox_label": "Enabled"
},
{
"col": "enabled",
"input_type": "checkbox",
"checkbox_label": "Enabled"
}
]
"class": "btn-ghost btn-sm"
},
{
"client_requirement": "client_is_administrator+",
@ -126,6 +92,11 @@
"action": "/action/dhcpreservations/addreservation_add",
"method": "post",
"items": [
{
"type": "hidden",
"name": "row_index",
"value": ""
},
{
"type": "field",
"label": "VLAN",
@ -183,6 +154,12 @@
"input_type": "checkbox",
"hint": "This device acts as a RADIUS authenticator, verifying credentials of other devices on the network."
},
{
"type": "field",
"label": "Enabled",
"name": "enabled",
"input_type": "checkbox"
},
{
"type": "button_row",
"items": [