item_list.html 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. {% extends "hardware_provisioning/base.html" %}
  2. {% block title %}Emprunt d'objet - {{ block.super }}{% endblock %}
  3. {% block content %}
  4. <h2>J'emprunte à l'association…</h2>
  5. <table>
  6. <thead>
  7. <tr>
  8. <th>Type de matériel</th>
  9. <th>Désignation</th>
  10. <th>Dépôt</th>
  11. <th>Addr. MAC</th>
  12. <th>Num. de série</th>
  13. <th>Actions</th>
  14. </tr>
  15. </thead>
  16. <tbody>
  17. {% for i in items %}
  18. <tr>
  19. <td>{{ i.type }}</td>
  20. <td>{{ i.designation }}</td>
  21. <td>{{ i.storage|default:'inconnu' }}</td>
  22. <td>{{ i.mac_address|default:'n/a' }}</td>
  23. <td>{{ i.serial|default:'n/a' }}</td>
  24. <td class="actions">
  25. <div class="button-group">
  26.   <a href="{% url 'hardware_provisioning:item-borrow' pk=i.pk %}" class="small button">
  27.      <i class="fa fa-exchange"></i>&nbsp;Emprunter
  28.  </a>
  29. </div>
  30. </td>
  31. </tr>
  32. {% endfor %}
  33. </tbody>
  34. </table>
  35. {% endblock %}