linuxrouter/docker/routlin-dash/app/pages/accountcreate/content.json

102 lines
2.8 KiB
JSON
Raw Permalink Normal View History

2026-05-27 20:56:30 -04:00
{
"client_requirement": "client_is_nothing=",
"items": [
{
"type": "auth_wrapper",
"client_requirement": "client_is_nothing=",
"items": [
{
"type": "auth_card",
"items": [
{
"type": "h1",
"text": "Complete Your Account"
},
{
"type": "p",
"text": "If your email has been pre-registered by a manager, setup your account below."
},
{
"type": "hr"
},
{
"type": "form",
2026-05-27 22:04:04 -04:00
"action": "/action/accountcreate/form_create",
2026-05-27 20:56:30 -04:00
"method": "post",
"items": [
{
"type": "field",
"label": "Email Address",
"name": "email",
"input_type": "text",
"placeholder": "you@example.com",
2026-06-10 14:40:05 -04:00
"validate": "VALIDATION_EMAIL",
2026-05-27 20:56:30 -04:00
"hint": "Must match your pre-registered email address."
},
{
"type": "field",
"label": "New Password",
"name": "password",
"input_type": "password",
"placeholder": "Choose a strong password"
},
{
"type": "field",
"label": "Confirm Password",
"name": "password_confirm",
"input_type": "password",
"placeholder": "Repeat your password"
},
{
"type": "field",
"label": "Timezone",
"name": "timezone",
"input_type": "select",
"value": "",
"options": "%TIMEZONE_OPTIONS%",
"hint": "Used to display timestamps in your local time."
},
{
"type": "button_primary",
"text": "Create Account",
2026-06-10 14:40:05 -04:00
"class": "btn-full create-account-btn",
"disabled": true
2026-05-27 20:56:30 -04:00
}
]
},
{
"type": "p",
"text": "Already have an account?",
"link": {
2026-05-27 22:04:04 -04:00
"action": "/accountlogin",
2026-05-27 20:56:30 -04:00
"text": "Log In"
}
}
]
}
]
},
{
"type": "section",
"client_requirement": "client_is_viewer+",
"items": [
{
"type": "h1",
"text": "Already logged in."
},
{
"type": "p",
"text": "Your account is already active."
},
{
"type": "spacer"
},
{
"type": "button_primary",
2026-05-27 22:04:04 -04:00
"action": "/overview",
2026-05-27 20:56:30 -04:00
"text": "Go to Overview"
}
]
}
]
}