125 lines
3 KiB
JSON
125 lines
3 KiB
JSON
{
|
|
"client_requirement": "client_is_viewer+",
|
|
"items": [
|
|
{
|
|
"type": "header_page_title",
|
|
"items": [
|
|
{
|
|
"type": "h1",
|
|
"text": "Preferences"
|
|
},
|
|
{
|
|
"type": "p",
|
|
"text": "Your personal account settings."
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "card",
|
|
"label": "Account Details",
|
|
"items": [
|
|
{
|
|
"type": "form",
|
|
"action": "/action/preferences/accountdetails_save",
|
|
"method": "post",
|
|
"items": [
|
|
{
|
|
"type": "field",
|
|
"label": "Timezone",
|
|
"name": "timezone",
|
|
"input_type": "select",
|
|
"value": "%PREF_TIMEZONE%",
|
|
"options": "%TIMEZONE_OPTIONS%"
|
|
},
|
|
{
|
|
"type": "button_row",
|
|
"items": [
|
|
{
|
|
"type": "button_primary",
|
|
"text": "Save Preferences"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "card",
|
|
"label": "Change Email",
|
|
"items": [
|
|
{
|
|
"type": "raw_html",
|
|
"html": "%PENDING_EMAIL_BAR%"
|
|
},
|
|
{
|
|
"type": "form",
|
|
"action": "/action/preferences/email_change_request",
|
|
"method": "post",
|
|
"items": [
|
|
{
|
|
"type": "field",
|
|
"label": "Email Address",
|
|
"name": "new_email",
|
|
"input_type": "text",
|
|
"value": "%PREF_EMAIL%",
|
|
"placeholder": "New email address"
|
|
},
|
|
{
|
|
"type": "button_row",
|
|
"items": [
|
|
{
|
|
"type": "button_primary",
|
|
"text": "Submit Request"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "card",
|
|
"label": "Change Password",
|
|
"items": [
|
|
{
|
|
"type": "form",
|
|
"action": "/action/preferences/changepassword_save",
|
|
"method": "post",
|
|
"items": [
|
|
{
|
|
"type": "field",
|
|
"label": "Current Password",
|
|
"name": "current_password",
|
|
"input_type": "password",
|
|
"placeholder": "Current password"
|
|
},
|
|
{
|
|
"type": "field",
|
|
"label": "New Password",
|
|
"name": "new_password",
|
|
"input_type": "password",
|
|
"placeholder": "New password"
|
|
},
|
|
{
|
|
"type": "field",
|
|
"label": "Confirm Password",
|
|
"name": "confirm_password",
|
|
"input_type": "password",
|
|
"placeholder": "Repeat new password"
|
|
},
|
|
{
|
|
"type": "button_row",
|
|
"items": [
|
|
{
|
|
"type": "button_primary",
|
|
"text": "Change Password"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|