Development

This commit is contained in:
Matthew Grotke 2026-06-07 21:32:46 -04:00
parent bb07e67d53
commit 69b5f00d5b
8 changed files with 165 additions and 26 deletions

View file

@ -86,6 +86,12 @@
"label": "Terms",
"field": "portal_terms_display",
"class": "col-narrow"
},
{
"label": "U/P Required",
"field": "require_upw",
"class": "col-narrow",
"render": "badge_yes_no"
}
],
"row_actions": [
@ -140,6 +146,41 @@
"item_placeholder": "e.g. I agree to the acceptable use policy.",
"hint": "Each term renders as a required checkbox the user must tick before submitting credentials. Leave empty for no terms."
},
{
"type": "hr"
},
{
"type": "field",
"label": "",
"name": "require_username_password",
"input_type": "checkbox",
"checkbox_label": "Require username and password"
},
{
"type": "field_row",
"cols": 2,
"items": [
{
"type": "field",
"label": "Default Session Duration",
"name": "default_duration_value",
"input_type": "number",
"min": 0,
"value": "0",
"hint": "How long portal access lasts after authentication. 0 = no expiration."
},
{
"type": "field",
"label": "Unit",
"name": "default_duration_unit",
"input_type": "select",
"options": [
{"value": "hours", "label": "Hours"},
{"value": "days", "label": "Days"}
]
}
]
},
{
"type": "button_row",
"items": [