Development
This commit is contained in:
parent
d8d1d46fd2
commit
eed1d295dc
69 changed files with 3355 additions and 3230 deletions
90
docker/routlin-dash/app/pages/accountmanage/content.json
Normal file
90
docker/routlin-dash/app/pages/accountmanage/content.json
Normal file
|
|
@ -0,0 +1,90 @@
|
|||
{
|
||||
"id": "view_manageaccounts",
|
||||
"client_requirement": "client_is_manager+",
|
||||
"items": [
|
||||
{
|
||||
"type": "header_page_title",
|
||||
"items": [
|
||||
{
|
||||
"type": "h1",
|
||||
"text": "Manage Accounts"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "table",
|
||||
"datasource": "config:accounts",
|
||||
"empty_message": "No accounts configured.",
|
||||
"columns": [
|
||||
{
|
||||
"label": "Email Address",
|
||||
"field": "email_address"
|
||||
},
|
||||
{
|
||||
"label": "Access Level",
|
||||
"field": "access_level"
|
||||
},
|
||||
{
|
||||
"label": "Added By",
|
||||
"field": "account_created_by"
|
||||
},
|
||||
{
|
||||
"label": "Added",
|
||||
"field": "account_created_utc"
|
||||
},
|
||||
{
|
||||
"label": "Status",
|
||||
"field": "account_status",
|
||||
"render": "badge_active_inactive"
|
||||
}
|
||||
],
|
||||
"row_actions": [
|
||||
{
|
||||
"action": "/action/delete_account",
|
||||
"method": "post",
|
||||
"text": "Remove",
|
||||
"class": "btn-danger btn-sm"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "card",
|
||||
"label": "Authorize New Account",
|
||||
"items": [
|
||||
{
|
||||
"type": "form",
|
||||
"action": "/action/add_account",
|
||||
"method": "post",
|
||||
"items": [
|
||||
{
|
||||
"type": "field",
|
||||
"label": "Email Address",
|
||||
"name": "email_address",
|
||||
"input_type": "text",
|
||||
"placeholder": "user@example.com",
|
||||
"hint": "The user will verify ownership of this address during account setup."
|
||||
},
|
||||
{
|
||||
"type": "field",
|
||||
"label": "Access Level",
|
||||
"name": "access_level",
|
||||
"input_type": "select",
|
||||
"options": "%ACCOUNT_LEVEL_OPTIONS%"
|
||||
},
|
||||
{
|
||||
"type": "button_row",
|
||||
"items": [
|
||||
{
|
||||
"type": "button_primary",
|
||||
"action": "/action/add_account",
|
||||
"method": "post",
|
||||
"text": "Authorize"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue