Development
This commit is contained in:
parent
a78df48804
commit
fc78e20f0e
4 changed files with 33 additions and 31 deletions
|
|
@ -601,9 +601,6 @@ def collect_tokens():
|
|||
f'<td class="table-cell">{label}</td>'
|
||||
f'<td class="table-cell">{e(user)}</td></tr>')
|
||||
pending_html = (
|
||||
'<hr class="divider">'
|
||||
'<h3 style="margin:0 0 0.75rem 0;font-size:0.85rem;font-weight:600;'
|
||||
'text-transform:uppercase;letter-spacing:0.05em;color:var(--text-muted)">Pending Changes</h3>'
|
||||
'<table class="data-table" style="margin-bottom:1rem">'
|
||||
'<thead><tr>'
|
||||
'<th class="table-header">Time</th>'
|
||||
|
|
@ -612,10 +609,15 @@ def collect_tokens():
|
|||
'</tr></thead>'
|
||||
f'<tbody>{rows}</tbody>'
|
||||
'</table>'
|
||||
'<form method="post" action="/action/general_cardpendingchanges_applyselected">'
|
||||
'<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 Now</button>'
|
||||
'<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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue