Fix admin status error
This commit is contained in:
parent
d15d7ffb61
commit
637be0d272
@ -46,7 +46,7 @@ def delete(*, id: str) -> str:
|
||||
'admin.html',
|
||||
delete_status=True,
|
||||
status=BrickSetStatus().select_specific(id),
|
||||
error=request.args.get('status_error')
|
||||
status_error=request.args.get('status_error')
|
||||
)
|
||||
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
{{ accordion.header('Set statuses danger zone', 'status-danger', 'admin', expanded=true, danger=true, class='text-end') }}
|
||||
<form action="{{ url_for('admin_status.do_delete', id=status.fields.id) }}" method="post">
|
||||
{% if error %}<div class="alert alert-danger text-start" role="alert"><strong>Error:</strong> {{ error }}.</div>{% endif %}
|
||||
{% if status_error %}<div class="alert alert-danger text-start" role="alert"><strong>Error:</strong> {{ status_error }}.</div>{% endif %}
|
||||
<div class="alert alert-danger text-center" role="alert">You are about to <strong>delete a set status</strong>. This action is irreversible.</div>
|
||||
<div class="row row-cols-lg-auto g-3 align-items-center">
|
||||
<div class="col-12 flex-grow-1">
|
||||
|
Loading…
Reference in New Issue
Block a user