132 lines
No EOL
3.6 KiB
JSON
132 lines
No EOL
3.6 KiB
JSON
{
|
|
"client_requirement": "client_is_viewer+",
|
|
"items": [
|
|
{
|
|
"type": "header_page_title",
|
|
"items": [
|
|
{
|
|
"type": "h1",
|
|
"text": "Actions"
|
|
},
|
|
{
|
|
"type": "p",
|
|
"text": "Apply or stage pending configuration changes."
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "card",
|
|
"label": "Pending Actions",
|
|
"client_requirement": "client_is_administrator+",
|
|
"items": [
|
|
{
|
|
"type": "form",
|
|
"action": "/action/actions/pending_apply",
|
|
"method": "post",
|
|
"items": [
|
|
{
|
|
"type": "raw_html",
|
|
"html": "%PENDING_ACTIONS_HTML%"
|
|
},
|
|
{
|
|
"type": "button_row",
|
|
"items": [
|
|
{
|
|
"type": "button_primary",
|
|
"text": "Apply Now",
|
|
"disabled": "%NO_PENDING%"
|
|
},
|
|
{
|
|
"type": "raw_html",
|
|
"html": "%APPLY_WARNING%"
|
|
},
|
|
{
|
|
"type": "raw_html",
|
|
"html": "<span style='flex:1'></span>"
|
|
},
|
|
{
|
|
"type": "button_danger",
|
|
"text": "Dismiss All",
|
|
"action": "/action/actions/pending_dismiss",
|
|
"method": "post",
|
|
"disabled": "%NO_PENDING%",
|
|
"client_requirement": "client_is_manager="
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "hr"
|
|
},
|
|
{
|
|
"type": "form",
|
|
"action": "/action/actions/pending_save",
|
|
"method": "post",
|
|
"items": [
|
|
{
|
|
"type": "field",
|
|
"label": "Apply Changes Immediately",
|
|
"name": "apply_changes_immediately",
|
|
"input_type": "checkbox",
|
|
"value": "%GENERAL_APPLY_ON_SAVE%",
|
|
"hint": "When enabled, saved changes are queued immediately. When disabled, changes accumulate in Pending Actions until you click Apply Now."
|
|
},
|
|
{
|
|
"type": "button_row",
|
|
"items": [
|
|
{
|
|
"type": "button_primary",
|
|
"action": "/action/actions/pending_save",
|
|
"method": "post",
|
|
"text": "Save"
|
|
},
|
|
{
|
|
"type": "button_cancel",
|
|
"text": "Cancel"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "card",
|
|
"label": "Change History",
|
|
"client_requirement": "client_is_administrator+",
|
|
"items": [
|
|
{
|
|
"type": "form",
|
|
"action": "/action/actions/history_revert",
|
|
"method": "post",
|
|
"items": [
|
|
{
|
|
"type": "raw_html",
|
|
"html": "%CHANGE_HISTORY_HTML%"
|
|
},
|
|
{
|
|
"type": "button_row",
|
|
"justify": "space-between",
|
|
"items": [
|
|
{
|
|
"type": "button_secondary",
|
|
"text": "Revert Selected",
|
|
"disabled": "%NO_HISTORY%"
|
|
},
|
|
{
|
|
"type": "button_danger",
|
|
"text": "Clear History",
|
|
"action": "/action/actions/history_clear",
|
|
"method": "post",
|
|
"disabled": "%NO_HISTORY%",
|
|
"client_requirement": "client_is_manager="
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
} |