File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7777
7878{% with messages = get_flashed_messages(with_categories=true) %}
7979 {% if messages %}
80+ < div style ="position: fixed; top: 60px; left: 50%; transform: translateX(-50%); z-index: 1050; width: 80%; max-width: 800px; ">
8081 {% for category, message in messages %}
8182 {% if category == "error" %}
82- < div class ="alert alert-danger " style ="margin: 1px; " role ="alert ">
83+ < div class ="alert alert-danger alert-dismissible fade show " style ="margin: 1px; " role ="alert ">
8384 {{ message }}
85+ < button type ="button " class ="close " data-dismiss ="alert " aria-label ="Close "> < span aria-hidden ="true "> ×</ span > </ button >
8486 </ div >
8587 {% elif category == 'warning' %}
86- < div class ="alert alert-warning " role ="alert ">
88+ < div class ="alert alert-warning alert-dismissible fade show " role ="alert ">
8789 {{ message }}
90+ < button type ="button " class ="close " data-dismiss ="alert " aria-label ="Close "> < span aria-hidden ="true "> ×</ span > </ button >
8891 </ div >
8992 {% elif category == 'success' %}
90- < div class ="alert alert-success " role ="alert ">
93+ < div class ="alert alert-success alert-dismissible fade show " role ="alert ">
9194 {{ message }}
95+ < button type ="button " class ="close " data-dismiss ="alert " aria-label ="Close "> < span aria-hidden ="true "> ×</ span > </ button >
9296 </ div >
9397 {% elif category == 'info' %}
94- < div class ="alert alert-primary " role ="alert ">
95- {{ message }}
96- </ div >
98+ < div class ="alert alert-primary alert-dismissible fade show " role ="alert ">
99+ {{ message }}
100+ < button type ="button " class ="close " data-dismiss ="alert " aria-label ="Close "> < span aria-hidden ="true "> ×</ span > </ button >
101+ </ div >
97102 {% endif %}
98103 {% endfor %}
104+ </ div >
99105 {% endif %}
100106{% endwith %}
101107
You can’t perform that action at this time.
0 commit comments