aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--jm2l/templates/Staff/list.mako11
1 files changed, 9 insertions, 2 deletions
diff --git a/jm2l/templates/Staff/list.mako b/jm2l/templates/Staff/list.mako
index cd5562b..a7abbf9 100644
--- a/jm2l/templates/Staff/list.mako
+++ b/jm2l/templates/Staff/list.mako
@@ -40,6 +40,13 @@ from slugify import slugify
</tr>
</thead>
<tbody>
+ % if len(tasks[Entity])==0:
+ <tr>
+ <td colspan="2" style="text-align:center;">
+ <i>Il n'y a pas de tâches dans ce pôle</i>
+ </td>
+ </tr>
+ % endif
% for task in tasks[Entity]:
<tr>
<td>
@@ -70,10 +77,10 @@ from slugify import slugify
% endfor
</tbody>
</table>
- </div>
+ </div>
% endfor
</div>
-
+</div>
<%def name="jsAddOn()">
<script>