forked from DGNum/gestioCOF
d31b9f59ab
- Les messages sont affichés à l'utilisateurs dans les vues de GestioCOF - On utilise une autre version de bootstrap et jquery (plus récent) Fixes #48
36 lines
1.5 KiB
HTML
36 lines
1.5 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block content %}
|
|
<header>
|
|
<div class="container banner">
|
|
<a href="{% url "gestioncof.views.home" %}">
|
|
<h1>GestioCOF</h1>
|
|
{% block homelink %}
|
|
<span class="glyphicon glyphicon-home" aria-hidden=true></span>
|
|
{% endblock %}
|
|
</a>
|
|
<div class="secondary">
|
|
<span class="hidden-xxs"> | </span>
|
|
<span><a href="{% url "gestioncof.views.logout" %}">Se déconnecter <span class="glyphicon glyphicon-log-out"></span></a></span>
|
|
</div>
|
|
<h2 class="member-status">{% if user.first_name %}{{ user.first_name }}{% else %}<tt>{{ user.username }}</tt>{% endif %}, {% if user.profile.is_cof %}<tt class="user-is-cof">au COF{% else %}<tt class="user-is-not-cof">non-COF{% endif %}</tt></h2>
|
|
</div><!-- /.container -->
|
|
</header>
|
|
{% if messages %}
|
|
{% for message in messages %}
|
|
<div class="messages">
|
|
<div class="alert alert-{{ message.level_tag }} alert-dismissible fade in{% if message.tags %} {{ message.tags }}{% endif %}">
|
|
<div class="container">
|
|
<button class="close" data-dismiss="alert">×</button>
|
|
{% if 'safe' in message.tags %}
|
|
{{ message|safe }}
|
|
{% else %}
|
|
{{ message }}
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% block interm_content %}{% endblock %}
|
|
{% endblock %}
|