Development

This commit is contained in:
Matthew Grotke 2026-06-08 01:08:24 -04:00
parent 43c4cf380d
commit f011594b04
10 changed files with 163 additions and 46 deletions

View file

@ -76,7 +76,7 @@
{
"type": "card",
"id": "add-form",
"label": "Add Credential",
"label": "Add User Account",
"client_requirement": "client_is_administrator+",
"items": [
{
@ -91,13 +91,14 @@
},
{
"type": "field",
"label": "Credential Active",
"label": "Account Active",
"name": "enabled",
"input_type": "checkbox"
"input_type": "checkbox",
"value": "true"
},
{
"type": "raw_html",
"html": "<script id=\"captive-vlan-data\" type=\"application/json\">%CAPTIVE_VLAN_OPTIONS%</script><script id=\"page-flags\" type=\"application/json\">{\"pro\": %PRO_LICENSE_JS%, \"radius_session_seconds\": %RADIUS_DEFAULT_SESSION_SECONDS_JS%}</script>"
"html": "<script id=\"captive-vlan-data\" type=\"application/json\">%CAPTIVE_VLAN_OPTIONS%</script><script id=\"page-flags\" type=\"application/json\">{\"pro\": %PRO_LICENSE_JS%, \"radius_session_seconds\": %RADIUS_DEFAULT_SESSION_SECONDS_JS%, \"radius_expiration_seconds\": %RADIUS_DEFAULT_EXPIRATION_SECONDS_JS%}</script>"
},
{
"type": "field",
@ -170,17 +171,42 @@
"items": [
{
"type": "field",
"label": "Valid For",
"name": "session_seconds_value",
"label": "Session Duration",
"name": "session_duration_value",
"input_type": "number",
"min": 0,
"value": "0",
"hint": "How long this credential is valid after creation. 0 = no expiration."
"hint": "0 = no session limit"
},
{
"type": "field",
"label": "Unit",
"name": "session_seconds_unit",
"name": "session_duration_unit",
"input_type": "select",
"options": [
{"value": "hours", "label": "Hours"},
{"value": "days", "label": "Days"}
]
}
]
},
{
"type": "field_row",
"cols": 2,
"items": [
{
"type": "field",
"label": "Expiration Duration",
"name": "expiration_duration_value",
"input_type": "number",
"min": 0,
"value": "0",
"hint": "How long after creation an account is valid before it permanently expires. 0 = never expires."
},
{
"type": "field",
"label": "Unit",
"name": "expiration_duration_unit",
"input_type": "select",
"options": [
{"value": "hours", "label": "Hours"},