list.html 737 B

1234567891011121314151617181920212223242526272829
  1. {% extends "base.html" %}
  2. {% block content %}
  3. <h2>L'association me prête…</h2>
  4. <table id="member_loans" class="full-width">
  5. <thead>
  6. <tr>
  7. <th>Type de matériel</th>
  8. <th>Matériel prêté</th>
  9. <th>Date de prêt</th>
  10. <th>Addr. MAC</th>
  11. <th>Num. de série</th>
  12. </tr>
  13. </thead>
  14. <tbody>
  15. {% for loan in loans %}
  16. <tr>
  17. <td>{{ loan.item.type }}</td>
  18. <td>{{ loan.item }}</a></td>
  19. <td>{{ loan.loan_date }}</td>
  20. <td>{{ loan.item.mac_address|default:"n/a" }}</td>
  21. <td>{{ loan.item.serial|default:"n/a" }}</td>
  22. </tr>
  23. {% endfor %}
  24. </tbody>
  25. </table>
  26. {% endblock %}