poulpe/shared/templates/shared/fluid.html
2018-10-12 18:04:27 +02:00

31 lines
1.1 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{% extends "shared/base.html" %}
{% load i18n %}
{% block principal %}
<div class="container-fluid">
{% if messages %}
<div class="row">
{% for message in messages %}
<div class="alert message-{{ message.tags }} alter-dismissible fade in" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="{% trans "Close" %}">
<span aria-hidden="true">×</span>
</button>
<strong>
{% if message.level == DEFAULT_MESSAGE_LEVELS.DEBUG %}{% trans "DEBUG" %}&#8239;:
{% elif message.level == DEFAULT_MESSAGE_LEVELS.INFO %}{% trans "Info"%}&#8239;:
{% elif message.level == DEFAULT_MESSAGE_LEVELS.SUCCESS %}{% trans "Succès"%}&#8239;:
{% elif message.level == DEFAULT_MESSAGE_LEVELS.WARNING %}{% trans "Attention" %}&#8239;:
{% elif message.level == DEFAULT_MESSAGE_LEVELS.ERROR %}{% trans "Erreur" %}&#8239;:
{% endif %}
</strong>
{{ message }}
</div>
{% endfor %}
</div>
{% endif %}
<div class="row">
{% block content %}{% endblock %}
</div>
</div><!-- /.container -->
{% endblock %}