Projet

Général

Profil

Télécharger (1,31 ko) Statistiques
| Branche: | Tag: | Révision:

calebasse / calebasse / ressources / templates / ressources / acttype_list.html @ e1e1e18f

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-group">En groupe</th>
10
     <th class="col-service">Service</th>
11
     <th class="col-action"></th>
12
    </thead>
13
    <tbody>
14
     {% for object in object_list %}
15
     <tr id="ressource-{{ object.pk }}" {% if new_id == object.pk %}class="new-object"{% endif %}>
16
     <td class="col-id">{{object.pk}}</td>
17
     <td class="col-label"><a href="{{ object.pk }}">{{object}}</a></td>
18
     <td class="col-groupe">{% if object.group %}<span class="icon-ok"></span>{% endif %}</td>
19
     <td class="col-service"><span class="box {{object.service.slug}}" title="{{object.service.name}}"></span></td>
20
     <td class="col-action"><button class="dialog-button delete-object-button"
21
               data-url="{{ object.pk }}/delete/ #form-content">Supprimer</button></td>
22
     </tr>
23
     {% endfor %}
24
    </tbody>
25
    </table>
26
    <script type="text/javascript">$('.new-object').effect('highlight', {}, 3000);</script>
27
    {% else %}
28
    <div class="big-msg-info">
29
    <p>
30
     Cliquez sur le bouton « Ajouter » en haut à droite pour ajouter un
31
     élément.
32
    </p>
33
    </div>
34
    {% endif %}
35
{% endblock %}
(1-1/7)