Development
This commit is contained in:
parent
c63098edc0
commit
91b11c618b
8 changed files with 112 additions and 231 deletions
|
|
@ -62,38 +62,10 @@
|
|||
"row_actions": [
|
||||
{
|
||||
"client_requirement": "client_is_administrator+",
|
||||
"action": "/action/portwrangling/rules_edit",
|
||||
"method": "inline_edit",
|
||||
"method": "js_edit",
|
||||
"target": "add-form",
|
||||
"text": "Edit",
|
||||
"class": "btn-ghost btn-sm",
|
||||
"fields": [
|
||||
{
|
||||
"col": "description",
|
||||
"input_type": "text"
|
||||
},
|
||||
{
|
||||
"col": "protocol",
|
||||
"input_type": "select",
|
||||
"options": "%PROTOCOL_OPTIONS%"
|
||||
},
|
||||
{
|
||||
"col": "dest_port",
|
||||
"input_type": "number"
|
||||
},
|
||||
{
|
||||
"col": "redirect_to",
|
||||
"input_type": "text",
|
||||
"validate": "VALIDATION_IPV4_FORMAT|VALIDATION_ADDRESS",
|
||||
"attrs": {
|
||||
"data-vlan-subnets": "%VLAN_SUBNET_INFO_JSON%"
|
||||
}
|
||||
},
|
||||
{
|
||||
"col": "enabled",
|
||||
"input_type": "checkbox",
|
||||
"checkbox_label": "Enabled"
|
||||
}
|
||||
]
|
||||
"class": "btn-ghost btn-sm"
|
||||
},
|
||||
{
|
||||
"client_requirement": "client_is_administrator+",
|
||||
|
|
@ -115,6 +87,11 @@
|
|||
"action": "/action/portwrangling/addrule_add",
|
||||
"method": "post",
|
||||
"items": [
|
||||
{
|
||||
"type": "hidden",
|
||||
"name": "row_index",
|
||||
"value": ""
|
||||
},
|
||||
{
|
||||
"type": "field",
|
||||
"label": "VLAN",
|
||||
|
|
@ -165,6 +142,12 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "field",
|
||||
"label": "Enabled",
|
||||
"name": "enabled",
|
||||
"input_type": "checkbox"
|
||||
},
|
||||
{
|
||||
"type": "button_row",
|
||||
"items": [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue