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/actes/templates/actes/act_listing.html
66 66

  
67 67

  
68 68
{% block content %}
69

  
70
{% if messages %}
71
<ul class="messages">
72
    {% for message in messages %}
73
    <li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
74
    {% endfor %}
75
</ul>
76
<script type="text/javascript">
77
$('.messages').delay(1000*(1+{{ messages|length }})).fadeOut('slow');
78
</script>
79
{% endif %}
80

  
81 69
<div id="sidebar">
82 70
  <form method="get" id="search-form">
83 71
    <div>
calebasse/agenda/templates/agenda/index.html
51 51
{% endblock %}
52 52

  
53 53
{% block agenda-content %}
54
<ul class="messages">
55
    {% for message in messages %}
56
    <li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
57
    {% endfor %}
58
</ul>
59
<script type="text/javascript">
60
    $('.messages').delay(1000*(1+{{ messages|length }})).fadeOut('slow');
61
</script>
62 54
   <table>
63 55
    <tbody>
64 56
    <tr>
calebasse/dossiers/templates/dossiers/patientrecord_update.html
21 21
{% endblock %}
22 22

  
23 23
{% block content %}
24

  
25
{% if messages %}
26
<ul class="messages">
27
    {% for message in messages %}
28
    <li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
29
    {% endfor %}
30
</ul>
31
<script type="text/javascript">
32
$('.messages').delay(1000*(1+{{ messages|length }})).fadeOut('slow');
33
</script>
34
{% endif %}
35
<ul class="messages" style="display: none;"></ul>
36

  
37 24
<div id="tabs">
38 25
  <ul>
39 26
    <li><a data-id="0" class="atabs" href="#tabs-1">Général</a></li>
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 %}
calebasse/static/css/style.css
1374 1374
	-moz-border-radius:7px;
1375 1375
	-webkit-border-radius:7px;
1376 1376
	border-radius:7px;
1377
	border: none
1377
	border: none;
1378
        text-align: left;
1378 1379
}
1379 1380

  
1380 1381
input.hasDatepicker {

Also available in: Unified diff