Development

This commit is contained in:
Matthew Grotke 2026-06-03 00:10:52 -04:00
parent 91b11c618b
commit 4a9110cc4c
3 changed files with 12 additions and 142 deletions

View file

@ -88,27 +88,10 @@
"row_actions": [
{
"client_requirement": "client_is_administrator+",
"action": "/action/vpn/peers_edit",
"method": "inline_edit",
"method": "js_edit",
"target": "add-form",
"text": "Edit",
"class": "btn-ghost btn-sm",
"fields": [
{
"col": "name",
"input_type": "text",
"validate": "VALIDATION_DASH_NAME"
},
{
"col": "split_tunnel",
"input_type": "checkbox",
"checkbox_label": "Enabled"
},
{
"col": "enabled",
"input_type": "checkbox",
"checkbox_label": "Enabled"
}
]
"class": "btn-ghost btn-sm"
},
{
"client_requirement": "client_is_administrator+",
@ -128,6 +111,7 @@
},
{
"type": "card",
"id": "add-form",
"label": "Add Peer",
"client_requirement": "client_is_administrator+",
"items": [
@ -136,6 +120,11 @@
"action": "/action/vpn/addpeer_add",
"method": "post",
"items": [
{
"type": "hidden",
"name": "row_index",
"value": ""
},
{
"type": "field",
"label": "Name",
@ -273,4 +262,4 @@
]
}
]
}
}