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

@ -42,25 +42,10 @@
"row_actions": [
{
"client_requirement": "client_is_administrator+",
"action": "/action/bannedips/table_edit",
"method": "inline_edit",
"method": "js_edit",
"target": "add-form",
"text": "Edit",
"class": "btn-ghost btn-sm",
"fields": [
{
"col": "description",
"input_type": "text"
},
{
"col": "ip",
"input_type": "text"
},
{
"col": "enabled",
"input_type": "checkbox",
"checkbox_label": "Enabled"
}
]
"class": "btn-ghost btn-sm"
},
{
"client_requirement": "client_is_administrator+",
@ -82,6 +67,11 @@
"action": "/action/bannedips/addip_add",
"method": "post",
"items": [
{
"type": "hidden",
"name": "row_index",
"value": ""
},
{
"type": "field",
"label": "Description",
@ -97,6 +87,12 @@
"input_type": "text",
"placeholder": "e.g. 1.2.3.4 or 1.2.3.0/24"
},
{
"type": "field",
"label": "Enabled",
"name": "enabled",
"input_type": "checkbox"
},
{
"type": "button_row",
"items": [
@ -117,4 +113,4 @@
]
}
]
}
}