item_list.html 1.0 KB

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