app/main.py: flash a message after deleting a word (use bootstrap alerts -- make the alert dismissable).
parent
3d5130d68d
commit
c3dcc62879
|
@ -196,9 +196,12 @@ def get_flashed_messages_if_any():
|
||||||
messages = get_flashed_messages()
|
messages = get_flashed_messages()
|
||||||
s = ''
|
s = ''
|
||||||
for message in messages:
|
for message in messages:
|
||||||
s += '<div class="alert alert-warning" role="alert">'
|
s += '<div class="alert alert-warning alert-dismissible fade show" role="alert">'
|
||||||
s += '<h4 class="alert-heading">Congratulations</h4>'
|
s += '<h4 class="alert-heading">Congratulations</h4>'
|
||||||
s += f'{message}'
|
s += f'{message}'
|
||||||
|
s += '<button type="button" class="close" data-dismiss="alert" aria-label="Close">'
|
||||||
|
s += ' <span aria-hidden="true">×</span>'
|
||||||
|
s += '</button>'
|
||||||
s += '</div>'
|
s += '</div>'
|
||||||
return s
|
return s
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue