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>'
|
||||
f'<tbody>{rows}</tbody>'
|
||||
'</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:
|
||||
pending_html = ''
|
||||
|
|
|
|||
|
|
@ -607,8 +607,44 @@
|
|||
"client_requirement": "client_is_administrator+",
|
||||
"items": [
|
||||
{
|
||||
"type": "raw_html",
|
||||
"html": "%PENDING_CHANGES_HTML%"
|
||||
"type": "form",
|
||||
"action": "/action/actions_cardpendingchanges_applyselected",
|
||||
"method": "post",
|
||||
"items": [
|
||||
{
|
||||
"type": "raw_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": [
|
||||
{
|
||||
"type": "form",
|
||||
"action": "/action/general_cardpendingchanges_save",
|
||||
"action": "/action/actions_cardoptions_save",
|
||||
"method": "post",
|
||||
"items": [
|
||||
{
|
||||
|
|
@ -635,7 +671,7 @@
|
|||
"items": [
|
||||
{
|
||||
"type": "button_primary",
|
||||
"action": "/action/general_cardpendingchanges_save",
|
||||
"action": "/action/actions_cardoptions_save",
|
||||
"method": "post",
|
||||
"text": "Save"
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue