Skip to content
Snippets Groups Projects
Commit 4f517886 authored by Camille Simiand's avatar Camille Simiand
Browse files

Target flash-message class instead of alert

parent ce3f9080
No related branches found
No related tags found
1 merge request!77tuleap-162-close-the-feedback-message-or-not-having-a-timeout-display
Pipeline #947 passed
......@@ -28,6 +28,6 @@ $(function() {
$("document").ready(function(){
setTimeout(function(){
$("div.alert").remove();
$(".flash-message").remove();
}, 5000 ); // 5 secs
});
\ No newline at end of file
......@@ -18,13 +18,13 @@
</div>
{% for flashWarning in app.flashes('warning') %}
<div class="text-center alert alert-warning col-11 col-md-10 col-lg-8 col-xl-6 mx-auto mb-5" role="alert">
<div class="flash-message text-center alert alert-warning col-11 col-md-10 col-lg-8 col-xl-6 mx-auto mb-5" role="alert">
{{ flashWarning }}
</div>
{% endfor %}
{% for flashSuccess in app.flashes('success') %}
<div class="text-center alert alert-success col-11 col-md-10 col-lg-8 col-xl-6 mx-auto mb-5" role="alert">
<div class="flash-message text-center alert alert-success col-11 col-md-10 col-lg-8 col-xl-6 mx-auto mb-5" role="alert">
{{ flashSuccess }}
</div>
{% endfor %}
......
......@@ -18,13 +18,13 @@
</div>
{% for flashWarning in app.flashes('warning') %}
<div class="text-center alert alert-warning col-11 col-md-10 col-lg-8 col-xl-6 mx-auto mb-5" role="alert">
<div class="flash-message text-center alert alert-warning col-11 col-md-10 col-lg-8 col-xl-6 mx-auto mb-5" role="alert">
{{ flashWarning }}
</div>
{% endfor %}
{% for flashSuccess in app.flashes('success') %}
<div class="text-center alert alert-success col-11 col-md-10 col-lg-8 col-xl-6 mx-auto mb-5" role="alert">
<div class="flash-message text-center alert alert-success col-11 col-md-10 col-lg-8 col-xl-6 mx-auto mb-5" role="alert">
{{ flashSuccess }}
</div>
{% endfor %}
......
......@@ -17,13 +17,13 @@
</div>
{% for flashWarning in app.flashes('warning') %}
<div class="text-center alert alert-warning col-11 col-md-10 col-lg-8 col-xl-6 mx-auto mb-5" role="alert">
<div class="flash-message text-center alert alert-warning col-11 col-md-10 col-lg-8 col-xl-6 mx-auto mb-5" role="alert">
{{ flashWarning }}
</div>
{% endfor %}
{% for flashSuccess in app.flashes('success') %}
<div class="text-center alert alert-success col-11 col-md-10 col-lg-8 col-xl-6 mx-auto mb-5" role="alert">
<div class="flash-message text-center alert alert-success col-11 col-md-10 col-lg-8 col-xl-6 mx-auto mb-5" role="alert">
{{ flashSuccess }}
</div>
{% endfor %}
......
......@@ -34,13 +34,13 @@
</div>
{% for flashWarning in app.flashes('warning') %}
<div class="text-center alert alert-warning col-11 col-md-10 col-lg-8 col-xl-6 mx-auto mb-5" role="alert">
<div class="flash-message text-center alert alert-warning col-11 col-md-10 col-lg-8 col-xl-6 mx-auto mb-5" role="alert">
{{ flashWarning }}
</div>
{% endfor %}
{% for flashSuccess in app.flashes('success') %}
<div class="text-center alert alert-success col-11 col-md-10 col-lg-8 col-xl-6 mx-auto mb-5" role="alert">
<div class="flash-message text-center alert alert-success col-11 col-md-10 col-lg-8 col-xl-6 mx-auto mb-5" role="alert">
{{ flashSuccess }}
</div>
{% endfor %}
......
......@@ -7,7 +7,7 @@
{% block body %}
<div class="mt-4">
{% for flashError in app.flashes('error') %}
<div class="alert alert-danger col-11 col-md-10 col-lg-8 col-xl-6 mx-auto mb-5 h1" role="alert">
<div class="flash-message alert alert-danger col-11 col-md-10 col-lg-8 col-xl-6 mx-auto mb-5 h1" role="alert">
{{ flashError }}
</div>
{% endfor %}
......
......@@ -6,7 +6,7 @@
{% block body %}
{% for flashError in app.flashes('error') %}
<div class="text-center alert alert-danger col-11 col-md-10 col-lg-8 col-xl-6 mx-auto mb-5" role="alert">
<div class="flash-message text-center alert alert-danger col-11 col-md-10 col-lg-8 col-xl-6 mx-auto mb-5" role="alert">
{{ flashError }}
</div>
{% endfor %}
......
......@@ -6,10 +6,10 @@
{% block body %}
{% if error %}
<div class="alert alert-danger col-6 m-auto">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
<div class="flash-message alert alert-danger col-6 m-auto">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
{% endif %}
{% for flashMessage in app.flashes('error') %}
<div class="text-center alert alert-warning col-11 col-md-10 col-lg-8 col-xl-6 mx-auto mb-5" role="alert" >
<div class="flash-message text-center alert alert-warning col-11 col-md-10 col-lg-8 col-xl-6 mx-auto mb-5" role="alert" >
{{ flashMessage }}
</div>
{% endfor %}
......
......@@ -14,7 +14,7 @@
</div>
{% for flashWarning in app.flashes('warning') %}
<div class="text-center alert alert-warning col-11 col-md-10 col-lg-9 col-xl-8 mx-auto my-5" role="alert">
<div class="flash-message text-center alert alert-warning col-11 col-md-10 col-lg-9 col-xl-8 mx-auto my-5" role="alert">
{{ flashWarning }}
</div>
{% endfor %}
......
......@@ -14,13 +14,13 @@
</div>
{% for flashSuccess in app.flashes('success') %}
<div class="text-center alert alert-success col-11 col-md-10 col-lg-8 col-xl-6 mx-auto mb-5" role="alert">
<div class="flash-message text-center alert alert-success col-11 col-md-10 col-lg-8 col-xl-6 mx-auto mb-5" role="alert">
{{ flashSuccess }}
</div>
{% endfor %}
{% for flashWarning in app.flashes('warning') %}
<div class="text-center alert alert-warning col-11 col-md-10 col-lg-8 col-xl-6 mx-auto mb-5" role="alert">
<div class="flash-message text-center alert alert-warning col-11 col-md-10 col-lg-8 col-xl-6 mx-auto mb-5" role="alert">
{{ flashWarning }}
</div>
{% endfor %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment