
{% if messages %}
<div class="alert">
	{% for message in messages %}
	<div class="w3-panel w3-round 
        {% if message.tags == 'success' %}w3-green
        {% elif message.tags == 'error'   %}w3-red
        {% elif message.tags == 'warning' %}w3-orange
        {% else %}w3-blue{% endif %}" style="width: 100%" >
		<div class="w3-bar-item">{{ message }}</div>
		<div class="w3-bar-item w3-button w3-right" onclick="this.parentElement.style.display='none'">&times;</div>
	</div>
	{% endfor %}
</div>
{% endif %}
