Révision ce8553a5
Ajouté par Serghei Mihai (congés, retour 15/05) il y a presque 10 ans
calebasse/ressources/templates/ressources/acttype_list.html | ||
---|---|---|
1 |
{% extends "ressources/list.html" %} |
|
2 |
|
|
3 |
{% block content %} |
|
4 |
{% if object_list %} |
|
5 |
<table id="ressource-list" class="main"> |
|
6 |
<thead> |
|
7 |
<th class="col-id">Identifiant</th> |
|
8 |
<th class="col-label">Libellé</th> |
|
9 |
<th class="col-service">Service</th> |
|
10 |
<th class="col-action"></th> |
|
11 |
</thead> |
|
12 |
<tbody> |
|
13 |
{% for object in object_list %} |
|
14 |
<tr id="ressource-{{ object.pk }}" {% if new_id == object.pk %}class="new-object"{% endif %}> |
|
15 |
<td class="col-id">{{object.pk}}</td> |
|
16 |
<td class="col-label"><a href="{{ object.pk }}">{{object}}</a></td> |
|
17 |
<td class="col-service"><span class="box {{object.service.slug}}" title="{{object.service.name}}"></span></td> |
|
18 |
<td class="col-action"><button class="dialog-button delete-object-button" |
|
19 |
data-url="{{ object.pk }}/delete/ #form-content">Supprimer</button></td> |
|
20 |
</tr> |
|
21 |
{% endfor %} |
|
22 |
</tbody> |
|
23 |
</table> |
|
24 |
<script type="text/javascript">$('.new-object').effect('highlight', {}, 3000);</script> |
|
25 |
{% else %} |
|
26 |
<div class="big-msg-info"> |
|
27 |
<p> |
|
28 |
Cliquez sur le bouton « Ajouter » en haut à droite pour ajouter un |
|
29 |
élément. |
|
30 |
</p> |
|
31 |
</div> |
|
32 |
{% endif %} |
|
33 |
{% endblock %} |
Formats disponibles : Unified diff
actes: act types displaying template