Project

General

Profile

« Previous | Next » 

Revision 60911fd8

Added by Serghei Mihai about 10 years ago

personnes: notifications displayed on group holidays management

Closes #4129

View differences:

calebasse/templates/calebasse/base.html
43 43
        <a href="{% url 'logout' %}">Déconnexion</a>
44 44
        {% endblock %}
45 45
      </div>
46

  
47
      {% block messages %}
48
      {% if messages %}
49
      <ul class="messages">
50
        {% for message in messages %}
51
        <li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
52
        {% endfor %}
53
      </ul>
54
      <script type="text/javascript">
55
        $('.messages').delay(1000*(1+{{ messages|length }})).fadeOut('slow');
56
      </script>
57
      {% endif %}
58
      {% endblock %}
59

  
46 60
    </div>
47 61
    {% endif %}
48 62
    <div id="content">

Also available in: Unified diff