| 
									
										
										
										
											2017-03-18 11:02:02 +01:00
										 |  |  | {# SUCCESS MESSAGE (ALWAYS SINGULAR) #}
 | 
					
						
							| 
									
										
										
										
											2015-05-01 18:44:49 +02:00
										 |  |  | {% if Session.has('success') %}
 | 
					
						
							| 
									
										
										
										
											2015-06-27 08:06:24 +02:00
										 |  |  |     <div class="alert alert-success alert-dismissible" role="alert">
 | 
					
						
							| 
									
										
										
										
											2016-02-07 08:31:21 +01:00
										 |  |  |         <button type="button" class="close" data-dismiss="alert">
 | 
					
						
							|  |  |  |             <span aria-hidden="true">×</span><span class="sr-only">{{ 'close'|_ }}</span>
 | 
					
						
							|  |  |  |         </button>
 | 
					
						
							|  |  |  |         <strong>{{ 'flash_success'|_ }}</strong> {{ session('success') }}
 | 
					
						
							| 
									
										
										
										
											2015-06-27 08:06:24 +02:00
										 |  |  |     </div>
 | 
					
						
							| 
									
										
										
										
											2015-05-01 18:44:49 +02:00
										 |  |  | {% endif %}
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-03-18 11:02:02 +01:00
										 |  |  | {# INFO MESSAGE (CAN BE MULTIPLE) #}
 | 
					
						
							| 
									
										
										
										
											2015-05-01 18:44:49 +02:00
										 |  |  | {% if Session.has('info') %}
 | 
					
						
							| 
									
										
										
										
											2015-06-27 08:06:24 +02:00
										 |  |  |     <div class="alert alert-info alert-dismissible" role="alert">
 | 
					
						
							| 
									
										
										
										
											2016-02-07 08:31:21 +01:00
										 |  |  |         <button type="button" class="close" data-dismiss="alert">
 | 
					
						
							|  |  |  |             <span aria-hidden="true">×</span><span class="sr-only">{{ 'close'|_ }}</span>
 | 
					
						
							|  |  |  |         </button>
 | 
					
						
							| 
									
										
										
										
											2015-07-19 13:46:34 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-03-18 11:02:02 +01:00
										 |  |  |         {# MULTIPLE INFO MESSAGE #}
 | 
					
						
							| 
									
										
										
										
											2016-02-07 08:31:21 +01:00
										 |  |  |         {% if session('info') is iterable and session('info')|length > 1 %}
 | 
					
						
							|  |  |  |             <strong>
 | 
					
						
							|  |  |  |                 {{ Lang.choice('firefly.flash_info_multiple', session('info')|length, {count: session('info')|length}) }}:</strong>
 | 
					
						
							| 
									
										
										
										
											2015-07-19 13:46:34 +02:00
										 |  |  |             <ul class="list-unstyled">
 | 
					
						
							| 
									
										
										
										
											2016-02-07 08:31:21 +01:00
										 |  |  |                 {% for inf in session('info') %}
 | 
					
						
							|  |  |  |                     <li>{{ inf|raw }}</li>
 | 
					
						
							| 
									
										
										
										
											2015-07-19 13:46:34 +02:00
										 |  |  |                 {% endfor %}
 | 
					
						
							|  |  |  |             </ul>
 | 
					
						
							|  |  |  |         {% endif %}
 | 
					
						
							| 
									
										
										
										
											2017-03-18 11:02:02 +01:00
										 |  |  |         {# SET OF MULTIPLE INFO MESSAGES, BUT THERE IS JUST ONE #}
 | 
					
						
							| 
									
										
										
										
											2016-02-07 08:31:21 +01:00
										 |  |  |         {% if session('info') is iterable and session('info')|length == 1 %}
 | 
					
						
							|  |  |  |             <strong>{{ 'flash_info'|_ }}:</strong> {{ session('info')[0]|raw }}
 | 
					
						
							| 
									
										
										
										
											2015-07-19 13:46:34 +02:00
										 |  |  |         {% endif %}
 | 
					
						
							| 
									
										
										
										
											2017-03-18 11:02:02 +01:00
										 |  |  |         {# SINGLE INFO MESSAGE #}
 | 
					
						
							| 
									
										
										
										
											2016-02-07 08:31:21 +01:00
										 |  |  |         {% if session('info') is not iterable %}
 | 
					
						
							|  |  |  |             <strong>{{ 'flash_info'|_ }}:</strong> {{ session('info')|raw }}
 | 
					
						
							| 
									
										
										
										
											2015-07-19 13:46:34 +02:00
										 |  |  |         {% endif %}
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-06-27 08:06:24 +02:00
										 |  |  |     </div>
 | 
					
						
							| 
									
										
										
										
											2015-07-19 13:46:34 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-05-01 18:44:49 +02:00
										 |  |  | {% endif %}
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-03-18 11:02:02 +01:00
										 |  |  | {# WARNING MESSAGE (ALWAYS SINGULAR) #}
 | 
					
						
							| 
									
										
										
										
											2015-05-01 18:44:49 +02:00
										 |  |  | {% if Session.has('warning') %}
 | 
					
						
							| 
									
										
										
										
											2015-06-27 08:06:24 +02:00
										 |  |  |     <div class="alert alert-warning alert-dismissible" role="alert">
 | 
					
						
							| 
									
										
										
										
											2016-02-07 08:31:21 +01:00
										 |  |  |         <button type="button" class="close" data-dismiss="alert">
 | 
					
						
							|  |  |  |             <span aria-hidden="true">×</span><span class="sr-only">{{ 'close'|_ }}</span>
 | 
					
						
							|  |  |  |         </button>
 | 
					
						
							|  |  |  |         <strong>{{ 'flash_warning'|_ }}</strong> {{ session('warning') }}
 | 
					
						
							| 
									
										
										
										
											2015-06-27 08:06:24 +02:00
										 |  |  |     </div>
 | 
					
						
							| 
									
										
										
										
											2015-05-01 18:44:49 +02:00
										 |  |  | {% endif %}
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-03-18 11:02:02 +01:00
										 |  |  | {# ERROR MESSAGE (CAN BE MULTIPLE) #}
 | 
					
						
							| 
									
										
										
										
											2015-05-01 18:44:49 +02:00
										 |  |  | {% if Session.has('error') %}
 | 
					
						
							| 
									
										
										
										
											2015-06-27 08:06:24 +02:00
										 |  |  |     <div class="alert alert-danger alert-dismissible" role="alert">
 | 
					
						
							| 
									
										
										
										
											2016-02-07 08:31:21 +01:00
										 |  |  |         <button type="button" class="close" data-dismiss="alert">
 | 
					
						
							|  |  |  |             <span aria-hidden="true">×</span><span class="sr-only">{{ 'close'|_ }}</span>
 | 
					
						
							|  |  |  |         </button>
 | 
					
						
							| 
									
										
										
										
											2015-07-19 13:46:34 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-03-18 11:02:02 +01:00
										 |  |  |         {# MULTIPLE ERRORS (BAD) #}
 | 
					
						
							| 
									
										
										
										
											2016-02-07 08:31:21 +01:00
										 |  |  |         {% if session('error') is iterable and session('error')|length > 1 %}
 | 
					
						
							|  |  |  |             <strong>
 | 
					
						
							|  |  |  |                 {{ Lang.choice('firefly.flash_error_multiple', session('error')|length, {count: session('error')|length}) }}:
 | 
					
						
							|  |  |  |             </strong>
 | 
					
						
							| 
									
										
										
										
											2015-07-19 13:46:34 +02:00
										 |  |  |             <ul class="list-unstyled">
 | 
					
						
							| 
									
										
										
										
											2016-02-07 08:31:21 +01:00
										 |  |  |                 {% for err in session('error') %}
 | 
					
						
							| 
									
										
										
										
											2015-07-19 13:46:34 +02:00
										 |  |  |                     <li>{{ err }}</li>
 | 
					
						
							|  |  |  |                 {% endfor %}
 | 
					
						
							|  |  |  |             </ul>
 | 
					
						
							|  |  |  |         {% endif %}
 | 
					
						
							| 
									
										
										
										
											2016-02-07 08:31:21 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-03-18 11:02:02 +01:00
										 |  |  |         {# SET OF MULTIPLE ERRORS, BUT THERE IS JUST ONE #}
 | 
					
						
							| 
									
										
										
										
											2016-02-07 08:31:21 +01:00
										 |  |  |         {% if session('error') is iterable and session('error')|length == 1 %}
 | 
					
						
							|  |  |  |             <strong>{{ 'flash_error'|_ }}</strong>
 | 
					
						
							|  |  |  |             {{ session('error')[0]|raw }}
 | 
					
						
							| 
									
										
										
										
											2015-07-19 13:46:34 +02:00
										 |  |  |         {% endif %}
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-03-18 11:02:02 +01:00
										 |  |  |         {# SINGLE ERROR #}
 | 
					
						
							| 
									
										
										
										
											2016-02-07 08:31:21 +01:00
										 |  |  |         {% if session('error') is not iterable %}
 | 
					
						
							|  |  |  |             <strong>{{ 'flash_error'|_ }}</strong> {{ session('error')|raw }}
 | 
					
						
							| 
									
										
										
										
											2015-07-19 13:46:34 +02:00
										 |  |  |         {% endif %}
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-06-27 08:06:24 +02:00
										 |  |  |     </div>
 | 
					
						
							| 
									
										
										
										
											2015-05-01 18:44:49 +02:00
										 |  |  | {% endif %}
 |