Project

General

Profile

« Previous | Next » 

Revision 99ea2836

Added by Serghei Mihai over 10 years ago

messages declared in the parent template and removed from children templates

Closes #4137

View differences:

calebasse/personnes/templates/personnes/worker_update.html
42 42
{% endblock %}
43 43

  
44 44
{% block content %}
45

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

  
57 45
<div id="info-membre">
58 46
  <form method="post" class="ajax" id="id-form">
59 47
    {% csrf_token %}

Also available in: Unified diff