Development
This commit is contained in:
parent
c63098edc0
commit
91b11c618b
8 changed files with 112 additions and 231 deletions
|
|
@ -124,33 +124,10 @@
|
|||
"row_actions": [
|
||||
{
|
||||
"client_requirement": "client_is_administrator+",
|
||||
"action": "/action/ddns/accounts_edit",
|
||||
"method": "inline_edit",
|
||||
"method": "js_edit",
|
||||
"target": "add-form",
|
||||
"text": "Edit",
|
||||
"class": "btn-ghost btn-sm",
|
||||
"fields": [
|
||||
{
|
||||
"col": "description",
|
||||
"input_type": "text"
|
||||
},
|
||||
{
|
||||
"col": "provider",
|
||||
"input_type": "select",
|
||||
"options": "%DDNS_PROVIDER_OPTIONS%"
|
||||
},
|
||||
{
|
||||
"col": "hostnames",
|
||||
"input_type": "textarea"
|
||||
},
|
||||
{
|
||||
"col": "enabled",
|
||||
"input_type": "checkbox"
|
||||
},
|
||||
{
|
||||
"col": "credentials",
|
||||
"input_type": "credentials"
|
||||
}
|
||||
]
|
||||
"class": "btn-ghost btn-sm"
|
||||
},
|
||||
{
|
||||
"client_requirement": "client_is_administrator+",
|
||||
|
|
@ -163,6 +140,7 @@
|
|||
},
|
||||
{
|
||||
"type": "card",
|
||||
"id": "add-form",
|
||||
"label": "Add DDNS Account",
|
||||
"client_requirement": "client_is_administrator+",
|
||||
"items": [
|
||||
|
|
@ -171,6 +149,11 @@
|
|||
"action": "/action/ddns/addaccount_add",
|
||||
"method": "post",
|
||||
"items": [
|
||||
{
|
||||
"type": "hidden",
|
||||
"name": "row_index",
|
||||
"value": ""
|
||||
},
|
||||
{
|
||||
"type": "field",
|
||||
"label": "Description",
|
||||
|
|
@ -192,6 +175,12 @@
|
|||
"input_type": "textarea",
|
||||
"placeholder": "e.g. myhome.duckdns.org"
|
||||
},
|
||||
{
|
||||
"type": "field",
|
||||
"label": "Enabled",
|
||||
"name": "enabled",
|
||||
"input_type": "checkbox"
|
||||
},
|
||||
{
|
||||
"type": "credential_fields",
|
||||
"provider_select": "provider"
|
||||
|
|
@ -295,4 +284,4 @@
|
|||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue