82
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
1 |
% content_for 'success_messages' => begin
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
2 |
% if ( defined($self->session->{success_messages}) && ( scalar( @{ $self->session->{success_messages}} ) > 0 ) ){
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
3 |
%foreach my $notice ( @{ $self->session->{success_messages}} ){
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
4 |
<div class="alert alert-success">
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
5 |
<a class="close" data-dismiss="alert">×</a>
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
6 |
<p><%= $notice; %></p>
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
7 |
</div>
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
8 |
%}
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
9 |
%delete($self->session->{success_messages});
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
10 |
%}
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
11 |
%end
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
12 |
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
13 |
% content_for 'noticed_messages' => begin
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
14 |
% if ( defined($self->session->{notice_messages}) && ( scalar( @{ $self->session->{notice_messages}} ) > 0 ) ){
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
15 |
%foreach my $notice ( @{ $self->session->{notice_messages}} ){
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
16 |
<div class="alert alert-info">
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
17 |
<a class="close" data-dismiss="alert">×</a>
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
18 |
<p><%= $notice; %></p>
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
19 |
</div>
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
20 |
%}
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
21 |
%delete($self->session->{notice_messages});
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
22 |
%}
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
23 |
%end
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
24 |
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
25 |
% content_for 'error_messages' => begin
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
26 |
% if ( defined($self->session->{error_messages}) && ( scalar( @{ $self->session->{error_messages}} ) > 0 ) ){
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
27 |
<div id="error-messages" class="error-messages">
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
28 |
%foreach my $error ( @{ $self->session->{error_messages}} ){
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
29 |
<div class="alert alert-error">
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
30 |
<a class="close" data-dismiss="alert">×</a>
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
31 |
<p><%= $error; %></p>
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
32 |
</div>
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
33 |
%}
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
34 |
%delete($self->session->{error_messages});
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
35 |
</div>
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
36 |
%}
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
37 |
%end
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
38 |
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
39 |
<%= content_for 'error_messages' %>
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
40 |
<%= content_for 'noticed_messages' %>
|
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
41 |
<%= content_for 'success_messages' %>
|