Development
This commit is contained in:
parent
a110af0a1c
commit
60df03e85c
2 changed files with 40 additions and 14 deletions
|
|
@ -609,16 +609,6 @@ def collect_tokens():
|
||||||
'</tr></thead>'
|
'</tr></thead>'
|
||||||
f'<tbody>{rows}</tbody>'
|
f'<tbody>{rows}</tbody>'
|
||||||
'</table>'
|
'</table>'
|
||||||
'<form method="post" action="/action/actions_cardpendingchanges_applyselected">'
|
|
||||||
f'<input type="hidden" name="config_hash" value="{e(core_hash())}"/>'
|
|
||||||
'<div class="button-row">'
|
|
||||||
'<button type="submit" class="btn btn-primary">Apply Selected</button>'
|
|
||||||
'</div></form>'
|
|
||||||
'<form method="post" action="/action/actions_cardpendingchanges_revertselected">'
|
|
||||||
f'<input type="hidden" name="config_hash" value="{e(core_hash())}"/>'
|
|
||||||
'<div class="button-row" style="margin-top:0.5rem">'
|
|
||||||
'<button type="submit" class="btn btn-secondary">Revert Selected</button>'
|
|
||||||
'</div></form>'
|
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
pending_html = ''
|
pending_html = ''
|
||||||
|
|
|
||||||
|
|
@ -605,10 +605,46 @@
|
||||||
"type": "card",
|
"type": "card",
|
||||||
"label": "Pending Changes",
|
"label": "Pending Changes",
|
||||||
"client_requirement": "client_is_administrator+",
|
"client_requirement": "client_is_administrator+",
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"type": "form",
|
||||||
|
"action": "/action/actions_cardpendingchanges_applyselected",
|
||||||
|
"method": "post",
|
||||||
"items": [
|
"items": [
|
||||||
{
|
{
|
||||||
"type": "raw_html",
|
"type": "raw_html",
|
||||||
"html": "%PENDING_CHANGES_HTML%"
|
"html": "%PENDING_CHANGES_HTML%"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "button_row",
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"type": "button_primary",
|
||||||
|
"action": "/action/actions_cardpendingchanges_applyselected",
|
||||||
|
"method": "post",
|
||||||
|
"text": "Apply Selected"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "form",
|
||||||
|
"action": "/action/actions_cardpendingchanges_revertselected",
|
||||||
|
"method": "post",
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"type": "button_row",
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"type": "button_secondary",
|
||||||
|
"action": "/action/actions_cardpendingchanges_revertselected",
|
||||||
|
"method": "post",
|
||||||
|
"text": "Revert Selected"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
@ -619,7 +655,7 @@
|
||||||
"items": [
|
"items": [
|
||||||
{
|
{
|
||||||
"type": "form",
|
"type": "form",
|
||||||
"action": "/action/general_cardpendingchanges_save",
|
"action": "/action/actions_cardoptions_save",
|
||||||
"method": "post",
|
"method": "post",
|
||||||
"items": [
|
"items": [
|
||||||
{
|
{
|
||||||
|
|
@ -635,7 +671,7 @@
|
||||||
"items": [
|
"items": [
|
||||||
{
|
{
|
||||||
"type": "button_primary",
|
"type": "button_primary",
|
||||||
"action": "/action/general_cardpendingchanges_save",
|
"action": "/action/actions_cardoptions_save",
|
||||||
"method": "post",
|
"method": "post",
|
||||||
"text": "Save"
|
"text": "Save"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue